summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandmarti1424 <scim.spreadsheet@gmail.com>2016-04-10 18:04:59 -0300
committerandmarti1424 <scim.spreadsheet@gmail.com>2016-04-10 18:04:59 -0300
commitdb55c980da28a9567da4b07cb33644e1dee4204a (patch)
tree3443012f4e5beaaa02d142939c1191b776a15960
Initial commit of wide char version of SC-IM
-rw-r--r--BUGS17
-rw-r--r--CHANGES23
-rw-r--r--HELP1
-rw-r--r--KNOWN_ISSUES13
-rw-r--r--LICENSE28
-rw-r--r--Readme.md47
-rw-r--r--TODO41
-rw-r--r--USER_REQUESTS2
-rw-r--r--WIKI2
-rwxr-xr-xfiles/csv/2010_dos.csv22
-rwxr-xr-xfiles/csv/2010_unix.csv22
-rw-r--r--files/csv/import.csv38
-rwxr-xr-xfiles/csv/n.csv3
-rwxr-xr-xfiles/csv/s.csv3
-rwxr-xr-xfiles/external/bci.sh2
-rwxr-xr-xfiles/sc/a.sc101
-rwxr-xr-xfiles/sc/b.sc56
-rwxr-xr-xfiles/sc/color.sc714
-rwxr-xr-xfiles/sc/defines.sc13
-rwxr-xr-xfiles/sc/export.sc19
-rwxr-xr-xfiles/sc/sort.sc40
-rwxr-xr-xfiles/xls/german.xlsbin0 -> 14336 bytes
-rwxr-xr-xfiles/xls/t1.xlsbin0 -> 8192 bytes
-rwxr-xr-xfiles/xlsx/date.xlsxbin0 -> 4609 bytes
-rwxr-xr-xfiles/xlsx/f1.xlsxbin0 -> 8780 bytes
-rwxr-xr-xfiles/xlsx/f2.xlsxbin0 -> 9201 bytes
-rwxr-xr-xfiles/xlsx/f3.xlsxbin0 -> 6367 bytes
-rwxr-xr-xfiles/xlsx/f3/[Content_Types].xml16
-rwxr-xr-xfiles/xlsx/f3/_rels/.rels7
-rwxr-xr-xfiles/xlsx/f3/docProps/app.xml5
-rwxr-xr-xfiles/xlsx/f3/docProps/core.xml5
-rwxr-xr-xfiles/xlsx/f3/docProps/custom.xml2
-rwxr-xr-xfiles/xlsx/f3/f3.xlsxbin0 -> 6367 bytes
-rwxr-xr-xfiles/xlsx/f3/xl/_rels/workbook.xml.rels8
-rwxr-xr-xfiles/xlsx/f3/xl/sharedStrings.xml6
-rwxr-xr-xfiles/xlsx/f3/xl/styles.xml49
-rwxr-xr-xfiles/xlsx/f3/xl/workbook.xml23
-rwxr-xr-xfiles/xlsx/f3/xl/worksheets/sheet1.xml65
-rwxr-xr-xfiles/xlsx/f3/xl/worksheets/sheet2.xml25
-rwxr-xr-xfiles/xlsx/f3/xl/worksheets/sheet3.xml25
-rw-r--r--files/xlsx/f4.xlsxbin0 -> 5905 bytes
-rwxr-xr-xfiles/xlsx/german2.xlsxbin0 -> 7083 bytes
-rwxr-xr-xfiles/xlsx/german3.xlsxbin0 -> 5212 bytes
-rwxr-xr-xfiles/xlsx/he.xlsxbin0 -> 12643 bytes
-rw-r--r--files/xlsx/products.xlsxbin0 -> 110289 bytes
-rw-r--r--files/xlsx/products2.xlsxbin0 -> 74641 bytes
-rwxr-xr-xfiles/xlsx/str.xlsxbin0 -> 25558 bytes
-rwxr-xr-xfiles/xlsx/t3.xlsxbin0 -> 6135 bytes
-rwxr-xr-xfiles/xlsx/test0and.xlsxbin0 -> 5746 bytes
-rw-r--r--scim.pngbin0 -> 59180 bytes
-rw-r--r--scim3.pngbin0 -> 57193 bytes
-rwxr-xr-xsrc.scim2/Makefile200
-rwxr-xr-xsrc.scim2/block.c97
-rwxr-xr-xsrc.scim2/block.h5
-rwxr-xr-xsrc.scim2/buffer.c147
-rwxr-xr-xsrc.scim2/buffer.h20
-rw-r--r--src.scim2/c.sc6
-rwxr-xr-xsrc.scim2/cmds.c1781
-rwxr-xr-xsrc.scim2/cmds.h65
-rwxr-xr-xsrc.scim2/cmds_command.c667
-rwxr-xr-xsrc.scim2/cmds_command.h9
-rwxr-xr-xsrc.scim2/cmds_edit.c303
-rwxr-xr-xsrc.scim2/cmds_edit.h15
-rwxr-xr-xsrc.scim2/cmds_insert.c70
-rwxr-xr-xsrc.scim2/cmds_insert.h3
-rwxr-xr-xsrc.scim2/cmds_normal.c1022
-rwxr-xr-xsrc.scim2/cmds_normal.h6
-rwxr-xr-xsrc.scim2/cmds_visual.c515
-rwxr-xr-xsrc.scim2/cmds_visual.h4
-rwxr-xr-xsrc.scim2/color.c363
-rwxr-xr-xsrc.scim2/color.h54
-rwxr-xr-xsrc.scim2/conf.c53
-rwxr-xr-xsrc.scim2/conf.h6
-rwxr-xr-xsrc.scim2/doc991
-rwxr-xr-xsrc.scim2/eres.sed2
-rwxr-xr-xsrc.scim2/exec.c77
-rwxr-xr-xsrc.scim2/exec.h1
-rwxr-xr-xsrc.scim2/file192
-rwxr-xr-xsrc.scim2/file.c1063
-rwxr-xr-xsrc.scim2/file.h18
-rwxr-xr-xsrc.scim2/filter.c171
-rwxr-xr-xsrc.scim2/filter.h11
-rwxr-xr-xsrc.scim2/format.c564
-rwxr-xr-xsrc.scim2/format.h2
-rwxr-xr-xsrc.scim2/gram.y953
-rwxr-xr-xsrc.scim2/help.c298
-rwxr-xr-xsrc.scim2/help.h4
-rwxr-xr-xsrc.scim2/hide_show.c161
-rwxr-xr-xsrc.scim2/hide_show.h6
-rwxr-xr-xsrc.scim2/history.c225
-rwxr-xr-xsrc.scim2/history.h30
-rwxr-xr-xsrc.scim2/input.c309
-rwxr-xr-xsrc.scim2/input.h16
-rwxr-xr-xsrc.scim2/interp.c2810
-rwxr-xr-xsrc.scim2/interp.h81
-rwxr-xr-xsrc.scim2/lex.c347
-rwxr-xr-xsrc.scim2/lex.h5
-rwxr-xr-xsrc.scim2/macros.h61
-rwxr-xr-xsrc.scim2/main.c513
-rwxr-xr-xsrc.scim2/main.h21
-rwxr-xr-xsrc.scim2/maps.c311
-rwxr-xr-xsrc.scim2/maps.h22
-rwxr-xr-xsrc.scim2/marks.c56
-rwxr-xr-xsrc.scim2/marks.h18
-rwxr-xr-xsrc.scim2/p.sc308
-rwxr-xr-xsrc.scim2/pipe.c137
-rwxr-xr-xsrc.scim2/pipe.h5
-rwxr-xr-xsrc.scim2/range.c576
-rwxr-xr-xsrc.scim2/range.h36
-rwxr-xr-xsrc.scim2/sc-im.1251
-rwxr-xr-xsrc.scim2/sc.h388
-rwxr-xr-xsrc.scim2/screen.c850
-rwxr-xr-xsrc.scim2/screen.h38
-rwxr-xr-xsrc.scim2/shift.c155
-rwxr-xr-xsrc.scim2/shift.h6
-rwxr-xr-xsrc.scim2/sort.c178
-rwxr-xr-xsrc.scim2/sort.h1
-rwxr-xr-xsrc.scim2/sres.sed2
-rwxr-xr-xsrc.scim2/undo.c543
-rwxr-xr-xsrc.scim2/undo.h35
-rwxr-xr-xsrc.scim2/utils/dictionary.c160
-rwxr-xr-xsrc.scim2/utils/dictionary.h18
-rwxr-xr-xsrc.scim2/utils/extra.c47
-rwxr-xr-xsrc.scim2/utils/extra.h5
-rwxr-xr-xsrc.scim2/utils/string.c336
-rwxr-xr-xsrc.scim2/utils/string.c~263
-rwxr-xr-xsrc.scim2/utils/string.h25
-rwxr-xr-xsrc.scim2/version.h5
-rwxr-xr-xsrc.scim2/vmtbl.c198
-rwxr-xr-xsrc.scim2/vmtbl.h2
-rwxr-xr-xsrc.scim2/xls.c127
-rwxr-xr-xsrc.scim2/xls.h1
-rwxr-xr-xsrc.scim2/xlsx.c391
-rwxr-xr-xsrc.scim2/xlsx.h8
-rwxr-xr-xsrc.scim2/xmalloc.c55
-rwxr-xr-xsrc.scim2/xmalloc.h4
-rwxr-xr-xsrc.scim2/yank.c249
-rwxr-xr-xsrc.scim2/yank.h11
138 files changed, 21607 insertions, 0 deletions
diff --git a/BUGS b/BUGS
new file mode 100644
index 0000000..37f33d3
--- /dev/null
+++ b/BUGS
@@ -0,0 +1,17 @@
+To report bugs please first check the KNOWN_ISSUES file.
+If you detect a bug, please fill the following items:
+
+COMPILER USED AND OPTIONS (although Makefile would be welcome):
+
+ACTIONS DONE:
+
+SC-IM BEHAVIOUR:
+
+EXPECTED BEHAVIOUR:
+
+and send them to scim.spreadsheet@gmail.com
+or create an issue in https://github.com/andmarti1424/sc-im
+
+Thanks!!
+
+
diff --git a/CHANGES b/CHANGES
new file mode 100644
index 0000000..5244fd3
--- /dev/null
+++ b/CHANGES
@@ -0,0 +1,23 @@
+v0.2.2
+* Added plain text export.
+* Added padding between cells.
+* Added 256 color support and "redefine_color" special command.
+* Added "aa" command in normal mode to act as autojus special command.
+* Added "gl" for going to last position in normal mode.
+* Added SC-IM man page.
+* Added "refresh" special command to refresh UI.
+* Big fix in how extended ascii are chars shown.
+* Big changes in functions used for showing cell content.
+* Fix in autonumeric mode.
+* Fix bug when typing real long string (issue #32).
+* Fix when using QUIT command with external scripts.
+* "cellcolor" command now checks if a locked cell exists prior to change format.
+* Locked cells are stored after any other command when saving a file.
+* Saving sc file: cellcolor and lock commands now are stored by rows when saving a sc file.
+* "Pv" command now do not paste cellcolors.
+* Translated source code comments to English.
+* Various fixes when using SC-IM without UI (--nocurses).
+* Help documentation now can be loaded without making install SC-IM.
+* MAXROWS now can be defined in Makefile.
+
+
diff --git a/HELP b/HELP
new file mode 100644
index 0000000..f7446af
--- /dev/null
+++ b/HELP
@@ -0,0 +1 @@
+Its all in :help
diff --git a/KNOWN_ISSUES b/KNOWN_ISSUES
new file mode 100644
index 0000000..795d2f4
--- /dev/null
+++ b/KNOWN_ISSUES
@@ -0,0 +1,13 @@
+Problem: It was detected that libxls can produce memory leaks.
+One example is when you try to read a non xls file, ex. xlsx file.
+
+Problem: functions that calls to "seval" causes memory leaks.
+This also happens in SC and has to be solved.
+
+Problem: Some cell equations gets messy after undo/redos.
+This fix requires implementation of Calc Chain. This will allow
+to fix this problem when UNDOing actions that change cells equations.
+
+Problem: Extended ascii chars not showing correctly.
+Compile sc-im against -lncursesw and not -lncurses.
+
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..36cc2db
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,28 @@
+Copyright (c) 2013-2015, Andrés Martinelli <andmarti@gmail.com>
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+3. All advertising materials mentioning features or use of this software
+ must display the following acknowledgement:
+ This product includes software developed by Andrés Martinelli
+ <andmarti@gmail.com>.
+4. Neither the name of the Andrés Martinelli nor the
+ names of other contributors may be used to endorse or promote products
+ derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY ANDRES MARTINELLI ''AS IS'' AND ANY
+EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL ANDRES MARTINELLI BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/Readme.md b/Readme.md
new file mode 100644
index 0000000..4028018
--- /dev/null
+++ b/Readme.md
@@ -0,0 +1,47 @@
+#SC-IM
+
+SC-IM is a spreadsheet program that is based on SC (http://ibiblio.org/pub/Linux/apps/financial/spreadsheet/sc-7.16.tar.gz)
+
+A spreadsheet is an interactive computer application program for organization and analysis of data in tabular form. Spreadsheets are developed as computerized simulations of paper accounting worksheets. The program operates on data represented as cells of an array, organized in rows and columns. Each cell of the array is a model–view–controller element that can contain either numeric or text data, or the results of formulas that automatically calculate and display a value based on the contents of other cells.
+
+The user of the spreadsheet can make changes in any stored value and observe the effects on calculated values. This makes the spreadsheet useful for "what-if" analysis since many cases can be rapidly investigated without tedious manual recalculation. Modern spreadsheet software can have multiple interacting sheets, and can display data either as text and numerals, or in graphical form.
+SC-IM uses ncurses for visual interface and has vim-like keybindings and some functional similarities with vim text editor.
+
+## Some of the features of SC-IM
+
+- UNDO / REDO.
+- 65.536 rows and 702 columns supported. (The number of rows can be expanded to 1.048.576 if wished).
+- CSV / TAB delimited file i