Skip to content

Commit

Permalink
Merge pull request unidoc#447 from unidoc-build/prep-rc-v1.10.0
Browse files Browse the repository at this point in the history
prepare release unioffice v1.10.0
  • Loading branch information
gunnsth authored Apr 24, 2021
2 parents 0f48687 + ad0b34b commit 9dd5d3a
Show file tree
Hide file tree
Showing 51 changed files with 18,859 additions and 18,814 deletions.
26 changes: 15 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ library for creation and editing of docx/xlsx/pptx files.
[![Build Status](https://travis-ci.org/unidoc/unioffice.svg?branch=master)](https://travis-ci.org/unidoc/unioffice)
[![GitHub (pre-)release](https://img.shields.io/github/release/unidoc/unioffice/all.svg)](https://github.com/unidoc/unioffice/releases)
[![License: UniDoc EULA](https://img.shields.io/badge/license-UniDoc%20EULA-blue)](https://unidoc.io/eula/)
[![GoDoc](https://godoc.org/github.com/unidoc/unioffice?status.svg)](https://godoc.org/github.com/unidoc/unioffice)
[![ApiDocs](https://img.shields.io/badge/godoc-reference-blue.svg)](https://apidocs.unidoc.io/unioffice/latest/)


![https://github.com/unidoc/unioffice/](./.github/preview.png "unioffice")

Expand All @@ -16,6 +17,7 @@ library for creation and editing of docx/xlsx/pptx files.
- Formatting
- Images
- Tables
- Word to PDF (docx to pdf)
- Spreadsheets (xlsx) [Excel]
- Read/Write/Edit
- Cell formatting including conditional formatting
Expand Down Expand Up @@ -49,6 +51,11 @@ DOCX/XLSX/PPTX.

go get github.com/unidoc/unioffice/

## License key
This software package (unioffice) is a commercial product and requires a license code to operate.

To Get a Metered License API Key in the Free Tier, sign up on https://cloud.unidoc.io

## Document Examples ##

- [Simple Text Formatting](https://github.com/unidoc/unioffice-examples/tree/master/document/simple) Text font colors, sizes, highlighting, etc.
Expand Down Expand Up @@ -103,22 +110,19 @@ background color. However it's easy to do manually via editing the
doc.X().Background.ColorAttr = &wordprocessingml.ST_HexColor{}
doc.X().Background.ColorAttr.ST_HexColorRGB = color.RGB(50, 50, 50).AsRGBString()

### Contribution guidelines ###
## Contribution guidelines ###

[![CLA assistant](https://cla-assistant.io/readme/badge/unidoc/unioffice)](https://cla-assistant.io/unidoc/unioffice)
If you are interested in contributing, please contact us.

All contributors are must sign a contributor license agreement before their code
will be reviewed and merged.
## Support and consulting ##

Please email us at [email protected] for any queries.

### Licensing ###
If you have any specific tasks that need to be done, we offer consulting in certain cases.
Please contact us with a brief summary of what you need and we will get back to you with a quote, if appropriate.

This software package (unioffice) is a commercial product and requires a license
code to operate.
## License agreement ##

The use of this software package is governed by the end-user license agreement
(EULA) available at: https://unidoc.io/eula/

To obtain a Trial license code to evaluate the software, please visit
https://unidoc.io/

4 changes: 2 additions & 2 deletions algo/algo.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// Use of this source code is governed by the UniDoc End User License Agreement
// terms that can be accessed at https://unidoc.io/eula/

package algo ;import _dc "strconv";func RepeatString (s string ,cnt int )string {if cnt <=0{return "";};_gb :=make ([]byte ,len (s )*cnt );_ba :=[]byte (s );for _eg :=0;_eg < cnt ;_eg ++{copy (_gb [_eg :],_ba );};return string (_gb );};
package algo ;import _e "strconv";

// NaturalLess compares two strings in a human manner so rId2 sorts less than rId10
func NaturalLess (lhs ,rhs string )bool {_g ,_b :=0,0;for _g < len (lhs )&&_b < len (rhs ){_e :=lhs [_g ];_gf :=rhs [_b ];_a :=_f (_e );_eb :=_f (_gf );switch {case _a &&!_eb :return true ;case !_a &&_eb :return false ;case !_a &&!_eb :if _e !=_gf {return _e < _gf ;};_g ++;_b ++;default:_c :=_g +1;_aa :=_b +1;for _c < len (lhs )&&_f (lhs [_c ]){_c ++;};for _aa < len (rhs )&&_f (rhs [_aa ]){_aa ++;};_cd ,_ :=_dc .ParseUint (lhs [_g :_c ],10,64);_gfd ,_ :=_dc .ParseUint (rhs [_g :_aa ],10,64);if _cd !=_gfd {return _cd < _gfd ;};_g =_c ;_b =_aa ;};};return len (lhs )< len (rhs );};func _f (_db byte )bool {return _db >='0'&&_db <='9'};
func NaturalLess (lhs ,rhs string )bool {_ff ,_ab :=0,0;for _ff < len (lhs )&&_ab < len (rhs ){_fc :=lhs [_ff ];_ee :=rhs [_ab ];_gg :=_g (_fc );_d :=_g (_ee );switch {case _gg &&!_d :return true ;case !_gg &&_d :return false ;case !_gg &&!_d :if _fc !=_ee {return _fc < _ee ;};_ff ++;_ab ++;default:_c :=_ff +1;_eb :=_ab +1;for _c < len (lhs )&&_g (lhs [_c ]){_c ++;};for _eb < len (rhs )&&_g (rhs [_eb ]){_eb ++;};_fff ,_ :=_e .ParseUint (lhs [_ff :_c ],10,64);_dd ,_ :=_e .ParseUint (rhs [_ff :_eb ],10,64);if _fff !=_dd {return _fff < _dd ;};_ff =_c ;_ab =_eb ;};};return len (lhs )< len (rhs );};func RepeatString (s string ,cnt int )string {if cnt <=0{return "";};_ggc :=make ([]byte ,len (s )*cnt );_b :=[]byte (s );for _ea :=0;_ea < cnt ;_ea ++{copy (_ggc [_ea :],_b );};return string (_ggc );};func _g (_a byte )bool {return _a >='0'&&_a <='9'};
Loading

0 comments on commit 9dd5d3a

Please sign in to comment.