diff --git a/README b/README index 9a11e07..0432f12 100644 --- a/README +++ b/README @@ -1,12 +1,39 @@ Readibl Text Reformatter is a program to format normal text or html, so that it is easier to read and process mentally. The program was previously called FlashRead. The program is written in the language Nim. -Pre-compiled packages will be added soon. -Impatient persons with knowlegde of nim can download the code and run the command: + +INSTALLATION ON LINUX: +-download RD 0.89 tar.gz. +-unpack, place it somewhere in your user-folder, and run the executable "flashread". +-to access the local web-server you just started, type: http://localhost:5050/flashread-form +-the portnumber can now be changed in the configuration-file: settings_flashread.conf + +If the paths you see on the webpage dont match the location of the application, adjust and run the linux-script flashread_sh. If the app is started from the dir where the application resides, path-problems can be avoided. + + + +INSTALLATION ON WINDOWS: +Installation-packages are forthcoming for windows. + + + +INSTALLATION BY BUILDING (for developers): +Developer with knowledge of nim can download the code and do the following: +-install external components: +> nimclipboard-lib: +on linux mint 19 you need to install folowing packages: +libx11-xcb-dev and/or xcb +in either one of those exists xbc.h, which is needed. +> moustachu +> jester + +Run the command: nim c -d:ssl -r flashread.nim which will compile the code to an executable, which will then be executed. The running program then acts as a local web-server, which can be invoked from a web-browser, by typing: -http://localhost:5002/flashread-form +http://localhost:5050/flashread-form + +The port-number can be adjusted in: settings_flashread.conf Then you get the user-interface in the browser. From there on you can use the clipboard-contents to either reformat a copied text, or use a copied web-address to process and reformat. Experiment with the switches. diff --git a/dutch.dat b/dutch.dat index eba3d8d..61961eb 100644 --- a/dutch.dat +++ b/dutch.dat @@ -199,7 +199,7 @@ zien bedoelen bedoelt te - is + is was ben waren @@ -350,7 +350,6 @@ wijzen wees wezen ont -d >----------------------------------< diff --git a/english.dat b/english.dat index 6410ebb..72b8b72 100644 --- a/english.dat +++ b/english.dat @@ -83,6 +83,7 @@ came become stay keep +kept remain goes go @@ -338,6 +339,7 @@ claim see sees seen + saw prove meets meet @@ -420,6 +422,12 @@ push pushes pull pulls + hear + hears +live + hide + hid + hidden >----------------------------------< @@ -612,7 +620,7 @@ itself herself ourselves yourselves -theirselves +themselves >----------------------------------< diff --git a/flashread.nim b/flashread.nim index 44e0408..26c77a9 100644 --- a/flashread.nim +++ b/flashread.nim @@ -15,7 +15,7 @@ in either one of those exists xbc.h, which is needed. VERSION-LINKS = CO-WORKING MODULES -flashread process_text webgui_def jo_htmlgen stringstuff f*.css source_files outer_html.h* flashread.h* settings* +flashread process_text webgui_def jo_htmlgen stringstuff f*.css source_files outer_html.h* flashread.h* settings* fr_tools loadgui 070 0.25 0.2 0.2 0.1 071 0.25/0.26 0.2 0.2 0.1 0.67 080 0.26 0.2 0.2 0.1 0.68 @@ -23,7 +23,7 @@ flashread process_text webgui_def jo_htmlgen stringstuff f*.css so 085 0.28 0.4 0.4 0.1 0.70 0.1 1.0 1.0 1.0 086 0.28 0.5 0.4 0.1 0.70 0.1 1.0 1.1 1.0 087 0.29 - +089 0.30 0.6 0.5 0.1 0.80 0.2 1.1 1.2 1.1 0.1 0.1 @@ -58,14 +58,14 @@ ADAP HIS -oplossing C; -javascript toepassen -improve reformating in-situ +-update titel +-talen-info verhuizen van de broncode naar de tekstbestanden ADAP NOW ADAP FUT --update titel --talen-info verhuizen van de broncode naar de tekstbestanden -check if additional sources can be loaded like css and pictures -prevalidate language-dat-file before running -javascript toevoegen @@ -98,7 +98,7 @@ var const - versionfl:float = 0.88 + versionfl:float = 0.89 minimal_word_lengthit = 7 appnamebriefst:string = "RD" appnamenormalst = "Readibl" @@ -116,9 +116,10 @@ if sourcefilestatust != "": else: statustekst = newlang("Press button to paste the content of the clipboard.") + settings: - port = Port(5002) # development # port = Port(5003) # production + port = Port(parseInt(readOptionFromFile("port-number", "value"))) # development var diff --git a/fr_tools.nim b/fr_tools.nim index ff4a5db..2bf5c1f 100644 --- a/fr_tools.nim +++ b/fr_tools.nim @@ -10,6 +10,7 @@ import strutils var interfacelanguagestatust*: string = "" test: string + versionfl: float = 0.1 diff --git a/settings_flashread.conf b/settings_flashread.conf index aa20243..33fe9a7 100644 --- a/settings_flashread.conf +++ b/settings_flashread.conf @@ -1,12 +1,15 @@ -# This is a configuration file for flashread. +# This is a configuration file for flashread / Readibl # Per line there are four fields related to the option: # name, value, description and value-list. -# version 1.0 +# version 1.1 + >>>Language<<< interface-language___dutch___the optional language of the interface-elements (english is default)___dutch text-language___english___the language of the text to be processed___dutch,,english +>>>Web-server<<< +port-number___5050___the port thru which to connect to the web-server___ >>>Other<<< testname___test-value___the name of the test___val1,,val2