Skip to content

Commit 53f5883

Browse files
committed
Prep for release 0.0.1
1 parent 641b435 commit 53f5883

25 files changed

+143
-168
lines changed

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
1-
# xlsxwriter.lua
1+
# Xlsxwriter for Lua
22

33
A Lua module for creating Excel XLSX files.
44

5-
## Work in progress
6-
7-
The code is working and the documentation is almost complete. However, it is still a few days away from release so treat this as a beta.
8-
9-
105
## The xlsxwriter module
116

12-
137
Xlsxwriter is a Lua module that can be used to write text, numbers and formulas
148
to multiple worksheets in an Excel 2007+ XLSX file. It supports
159
features such as:
@@ -18,15 +12,15 @@ features such as:
1812
* Full formatting.
1913
* Memory optimisation mode for writing large files.
2014

21-
It supports Lua 5.1 and Lua 5.2.
15+
It works with Lua 5.1 and Lua 5.2.
2216

2317

2418
Here is an example:
2519

2620

2721
```lua
2822
--
29-
-- A simple example of some of the features of the xlsxwriter.lua module.
23+
-- A simple example of some of the features of the xlsxwriter module.
3024
--
3125

3226
local Workbook = require "xlsxwriter.workbook"

dev/docs/source/author.rst

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,17 @@ You can contact me at [email protected].
1515
Donations
1616
---------
1717

18-
If you would like to donate to the XlsxWriter project to keep it active you can
19-
do so via
18+
If you would like to donate to the xlsxwriter project to keep it active or to pay
19+
for the PDF copy of the documentation you can do so via
2020
`PayPal <https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RRZCPSL65X858>`_.
2121

2222
.. raw:: html
2323

2424
<center>
25-
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
26-
<input type="hidden" name="cmd" value="_s-xclick">
27-
<input type="hidden" name="hosted_button_id" value="RRZCPSL65X858">
28-
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
29-
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
30-
</form>
25+
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
26+
<input type="hidden" name="cmd" value="_s-xclick">
27+
<input type="hidden" name="hosted_button_id" value="DL8AH2YG9XT42">
28+
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
29+
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
30+
</form>
3131
</center>
32-

dev/docs/source/bugs.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ submit bug reports.
1111
Content is Unreadable. Open and Repair
1212
--------------------------------------
1313

14-
Very, very occasionally you may see an Excel warning when opening an xlsxwriter.lua file like:
14+
Very, very occasionally you may see an Excel warning when opening an ``xlsxwriter`` file like:
1515

1616
Excel could not open file.xlsx because some content is unreadable. Do you
1717
want to open and repair this workbook.
@@ -44,7 +44,7 @@ Formula results displaying as zero in non-Excel applications
4444
------------------------------------------------------------
4545

4646
Due to wide range of possible formulas and interdependencies between them,
47-
xlsxwriter.lua doesn't, and realistically cannot, calculate the result of a
47+
``xlsxwriter`` doesn't, and realistically cannot, calculate the result of a
4848
formula when it is written to an XLSX file. Instead, it stores the value 0 as
4949
the formula result. It then sets a global flag in the XLSX file to say that
5050
all formulas and functions should be recalculated when the file is opened.
@@ -63,7 +63,7 @@ formula using the optional ``value`` parameter in :func:`write_formula()`::
6363
Strings aren't displayed in Apple Numbers in 'constant_memory' mode
6464
-------------------------------------------------------------------
6565

66-
In :func:`Workbook` ``'constant_memory'`` mode xlsxwriter.lua uses an optimisation where cell strings aren't stored in an Excel structure call "shared strings"
66+
In :func:`Workbook` ``'constant_memory'`` mode ``xlsxwriter`` uses an optimisation where cell strings aren't stored in an Excel structure call "shared strings"
6767
and instead are written "in-line".
6868

6969
This is a documented Excel feature that is supported by most spreadsheet
@@ -78,21 +78,21 @@ Images inserted into worksheets via :func:`insert_image` may not display
7878
correctly in Excel 2011 for Mac and non-Excel applications such as OpenOffice
7979
and LibreOffice. Specifically the images may looked stretched or squashed.
8080

81-
This is not specifically an xlsxwriter.lua issue. It also occurs with files created in Excel 2007 and Excel 2010.
81+
This is not specifically an ``xlsxwriter`` issue. It also occurs with files created in Excel 2007 and Excel 2010.
8282

8383

8484

8585
Reporting Bugs
8686
==============
8787

88-
Here are some tips on reporting bugs in xlsxwriter.lua.
88+
Here are some tips on reporting bugs in ``xlsxwriter``.
8989

9090

9191
Upgrade to the latest version of the module
9292
-------------------------------------------
9393

9494
The bug you are reporting may already be fixed in the latest version of the
95-
module. You can check which version of xlsxwriter.lua that you are using as
95+
module. You can check which version of ``xlsxwriter`` that you are using as
9696
follows::
9797

9898
lua -e 'W = require "xlsxwriter.workbook"; print(W.version)'
@@ -103,7 +103,7 @@ Check the :ref:`changes` section to see what has changed in the latest versions.
103103
Read the documentation
104104
----------------------
105105

106-
Read or search the xlsxwriter.lua documentation to see if the issue you are
106+
Read or search the ``xlsxwriter`` documentation to see if the issue you are
107107
encountering is already explained.
108108

109109
Look at the example programs
@@ -112,10 +112,10 @@ Look at the example programs
112112
There are many :ref:`example_programs` in the distribution. Try to identify an example
113113
program that corresponds to your query and adapt it to use as a bug report.
114114

115-
Use the xlsxwriter.lua Issue tracker on GitHub
116-
-------------------------------------------------------
115+
Use the xlsxwriter Issue tracker on GitHub
116+
------------------------------------------
117117

118-
The `xlsxwriter.lua issue tracker <https://github.com/jmcnamara/xlsxwriter.lua/issues>`_ is on GitHub.
118+
The `xlsxwriter issue tracker <https://github.com/jmcnamara/xlsxwriter.lua/issues>`_ is on GitHub.
119119

120120

121121
Pointers for submitting a bug report
@@ -129,7 +129,7 @@ Pointers for submitting a bug report
129129
#. The sample program should be as small as possible to demonstrate the
130130
problem. Don't copy and paste large non-relevant sections of your program.
131131

132-
A sample bug report is shown below. This format helps to analyse and respond to
132+
A sample bug report is shown below. This format helps analyse and respond to
133133
the bug report more quickly.
134134

135135
**Issue with SOMETHING**

dev/docs/source/example_demo.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Example: Simple Feature Demonstration
44
=====================================
55

6-
This program is an example of writing some of the features of the xlsxwriter.lua
6+
This program is an example of writing some of the features of the ``xlsxwriter``
77
module.
88

99
.. image:: _images/demo.png

dev/docs/source/example_hello_world.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Example: Hello World
44
====================
55

66
The simplest possible spreadsheet. This is a good place to start to see if
7-
the xlsxwriter.lua module is installed correctly.
7+
the ``xlsxwriter`` module is installed correctly.
88

99
.. image:: _images/hello01.png
1010

dev/docs/source/example_utf8.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Example: Write UTF-8 Strings
55

66
An example of writing simple UTF-8 strings to a worksheet.
77

8-
Unicode strings in Excel must be UTF-8 encoded. With xlsxwriter.lua all that
8+
Unicode strings in Excel must be UTF-8 encoded. With ``xlsxwriter`` all that
99
is required is that the source file is UTF-8 encoded and Lua will handle the
1010
UTF-8 strings like any other strings:
1111

dev/docs/source/examples.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Examples
55

66
The following are some of the examples included in the
77
`examples <https://github.com/jmcnamara/xlsxwriter.lua/tree/master/examples>`_
8-
directory of the xlsxwriter.lua distribution.
8+
directory of the ``xlsxwriter`` distribution.
99

1010
.. toctree::
1111
:maxdepth: 1

dev/docs/source/faq.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ Q. Can XlsxWriter use an existing Excel file as a template?
1414

1515
No.
1616

17-
Xlsxwriter.lua is designed only as a file *writer*. It cannot read or modify an
17+
Xlsxwriter is designed only as a file *writer*. It cannot read or modify an
1818
existing Excel file.
1919

2020

2121
Q. Why do my formulas show a zero result in some, non-Excel applications?
2222
-------------------------------------------------------------------------
2323

2424
Due to wide range of possible formulas and interdependencies between them
25-
xlsxwriter.lua doesn't, and realistically cannot, calculate the result of a
25+
``xlsxwriter`` doesn't, and realistically cannot, calculate the result of a
2626
formula when it is written to an XLSX file. Instead, it stores the value 0 as
2727
the formula result. It then sets a global flag in the XLSX file to say that
2828
all formulas and functions should be recalculated when the file is opened.

dev/docs/source/format.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ Excel's built-in formats are shown in the following table:
325325

326326
.. note::
327327

328-
The dollar sign in the above format appears as the defined local currency
328+
The dollar sign in the above formats appear as the defined local currency
329329
symbol.
330330

331331

@@ -532,7 +532,7 @@ an integer, is taken as the level of indentation::
532532
format1:set_indent(1)
533533
format2:set_indent(2)
534534

535-
worksheet:write("A1", "This text is indented 1 level", format1)
535+
worksheet:write("A1", "This text is indented 1 level", format1)
536536
worksheet:write("A2", "This text is indented 2 levels", format2)
537537

538538
.. image:: _images/text_indent.png
@@ -562,7 +562,7 @@ format:set_text_justlast()
562562

563563
.. function:: set_text_justlast()
564564

565-
Turn on the justify last text property.
565+
Turn on the "justify last" text property.
566566

567567
Only applies to Far Eastern versions of Excel.
568568

@@ -646,7 +646,7 @@ A cell border is comprised of a border on the bottom, top, left and right.
646646
These can be set to the same value using ``set_border()`` or individually
647647
using the relevant method calls shown above.
648648

649-
The following shows the border styles sorted by XlsxWriter index number:
649+
The following shows the border styles sorted by Excel index number:
650650

651651
+-------+---------------+--------+-----------------+
652652
| Index | Name | Weight | Style |

dev/docs/source/getting_started.rst

Lines changed: 20 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,50 @@
11
.. _getting_started:
22

3-
Getting Started with XlsxWriter
3+
Getting Started with xlsxwriter
44
===============================
55

66
Here are some easy instructions to get you up and running with the xlsxwriter
77
module.
88

99

10-
Installing Xlsxwriter.lua
11-
-------------------------
10+
Installing xlsxwriter
11+
---------------------
1212

13-
The first step is to install the xlsxwriter.lua module. There are several ways to do this.
13+
Xlsxwriter is a pure Lua module and doesn't need a native compiler to install. However, it has a dependency
14+
on the `ZipWriter <https://github.com/moteus/ZipWriter>`_ module which does have binary dependencies.
1415

15-
.. Note::
16+
These dependencies are handled automatically if you use the ``luarocks`` or ``luadist`` methods shown below.
1617

17-
Xlsxwriter.lua has a dependency on the `ZipWriter <https://github.com/moteus/ZipWriter>`_ module.
1818

1919
Using luarocks
2020
**************
2121

22-
The easiest way to install xlsxwriter.lua is with the `luarocks <http://luarocks.org>`_ utility::
22+
The easiest way to install ``xlsxwriter`` is with the `luarocks <http://luarocks.org>`_ utility::
2323

2424
$ sudo luarocks install xlsxwriter
2525

2626

27+
Using luadist
28+
*************
29+
30+
Another easy "packaged" way of installing ``xlsxwriter`` is with the `luadist <http://luadist.org>`_ distribution::
31+
32+
$ sudo luadist install xlsxwriter
33+
34+
2735
Cloning from GitHub
2836
*******************
2937

30-
The Xlsxwriter.lua source code and bug tracker is in the
38+
The ``xlsxwriter`` source code and bug tracker is in the
3139
`xlsxwriter.lua repository <http://github.com/jmcnamara/xlsxwriter.lua>`_ on GitHub.
3240
You can clone the repository and install from it as follows::
3341

3442
$ git clone https://github.com/jmcnamara/xlsxwriter.lua.git
3543

3644
$ cd xlsxwriter.lua
3745
$ sudo luarocks make
38-
39-
40-
Installing from a tarball
41-
*************************
42-
43-
If you download a tarball of the latest version of xlsxwriter.lua you can install it as follows (change the version number to suit)::
44-
45-
$ tar -zxvf xlsxwriter-1.2.3.tar.gz
46-
47-
$ cd xlsxwriter-1.2.3
48-
$ sudo luarocks make
49-
50-
A tarball of the latest code can be downloaded from GitHub as follows::
51-
52-
$ curl -O -L http://github.com/jmcnamara/xlsxwriter.lua/archive/master.tar.gz
53-
54-
$ tar zxvf master.tar.gz
55-
$ cd xlsxwriter.lua-master
56-
$ sudo luarocks make
46+
# or
47+
$ sudo luadist make
5748

5849
Running a sample program
5950
------------------------
@@ -94,8 +85,8 @@ Documentation
9485
The latest version of this document is hosted on
9586
`Read The Docs <http://xlsxwriterlua.readthedocs.org>`_. It is also
9687
available as a
97-
`PDF <http://github.com/jmcnamara/xlsxwriter.lua/blob/master/docs/xlsxwriter_lua.pdf>`_.
88+
`PDF <http://github.com/jmcnamara/xlsxwriter.lua/blob/master/docs/xlsxwriter_lua.pdf?raw=true>`_.
9889

9990
Once you are happy that the module is installed and operational you can have a
100-
look at the rest of the Xlsxwriter.lua documentation. :ref:`tutorial1` is a good
91+
look at the rest of the ``xlsxwriter`` documentation. :ref:`tutorial1` is a good
10192
place to start.

dev/docs/source/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Creating Excel files with Lua and Xlsxwriter
22
============================================
33

4-
Xlsxwriter is a Lua module for creating Excel XLSX files.
4+
**Xlsxwriter** is a Lua module for creating Excel XLSX files.
55

66
.. image:: _images/demo.png
77

@@ -11,15 +11,15 @@ Xlsxwriter is a Lua module for creating Excel XLSX files.
1111

1212
**XlsxWriter**
1313

14-
Xlsxwriter is a Lua module that can be used to write text, numbers and formulas
14+
Xlsxwriter can be used to write text, numbers and formulas
1515
to multiple worksheets in an Excel 2007+ XLSX file. It supports
1616
features such as:
1717

1818
* 100% compatible Excel XLSX files.
1919
* Full formatting.
2020
* Memory optimisation mode for writing large files.
2121

22-
It supports Lua 5.1 and Lua 5.2.
22+
It works with Lua 5.1 and Lua 5.2.
2323

2424
.. only:: html
2525

dev/docs/source/introduction.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Introduction
44
============
55

6-
**Xlsxwriter.lua** is a Lua module for writing files in the Excel 2007+ XLSX
6+
**Xlsxwriter** is a Lua module for writing files in the Excel 2007+ XLSX
77
file format.
88

99
It can be used to write text, numbers, and formulas to multiple worksheets and
@@ -23,6 +23,6 @@ However:
2323

2424
* It can only create **new files**. It cannot read or modify existing files.
2525

26-
XLsxwriter.lua is a port of the Perl `Excel::Writer::XLSX <http://search.cpan.org/~jmcnamara/Excel-Writer-XLSX/>`_ and the Python `XlsxWriter <http://xlsxwriter.readthedocs.org>`_ modules and is licensed under an MIT/X11 :ref:`License`.
26+
Xlsxwriter is a Lua port of the Perl `Excel::Writer::XLSX <http://search.cpan.org/~jmcnamara/Excel-Writer-XLSX/>`_ and the Python `XlsxWriter <http://xlsxwriter.readthedocs.org>`_ modules and is licensed under an MIT/X11 :ref:`License`.
2727

2828
To try out the module see the next section on :ref:`getting_started`.

dev/docs/source/license.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,4 @@
33
License
44
=======
55

6-
XlsxWriter is released under a MIT license.
7-
8-
96
.. include:: ../../../LICENSE.txt

0 commit comments

Comments
 (0)