Skip to content

Commit

Permalink
Update readibl 0.89
Browse files Browse the repository at this point in the history
  • Loading branch information
some-avail committed Jan 9, 2021
1 parent b9723d4 commit 36b7c0e
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 14 deletions.
33 changes: 30 additions & 3 deletions README
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
3 changes: 1 addition & 2 deletions dutch.dat
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ zien
bedoelen
bedoelt
te
is
is
was
ben
waren
Expand Down Expand Up @@ -350,7 +350,6 @@ wijzen
wees
wezen
ont
d
>----------------------------------<


Expand Down
10 changes: 9 additions & 1 deletion english.dat
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ came
become
stay
keep
kept
remain
goes
go
Expand Down Expand Up @@ -338,6 +339,7 @@ claim
see
sees
seen
saw
prove
meets
meet
Expand Down Expand Up @@ -420,6 +422,12 @@ push
pushes
pull
pulls
hear
hears
live
hide
hid
hidden
>----------------------------------<


Expand Down Expand Up @@ -612,7 +620,7 @@ itself
herself
ourselves
yourselves
theirselves
themselves
>----------------------------------<


Expand Down
13 changes: 7 additions & 6 deletions flashread.nim
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ 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
081 0.26 0.3 0.4 0.1 0.69
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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -98,7 +98,7 @@ var


const
versionfl:float = 0.88
versionfl:float = 0.89
minimal_word_lengthit = 7
appnamebriefst:string = "RD"
appnamenormalst = "Readibl"
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions fr_tools.nim
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import strutils
var
interfacelanguagestatust*: string = ""
test: string
versionfl: float = 0.1



Expand Down
7 changes: 5 additions & 2 deletions settings_flashread.conf
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 36b7c0e

Please sign in to comment.