Showing posts with label Open Source. Show all posts
Showing posts with label Open Source. Show all posts

Saturday, November 9, 2024

Open-source Free English Dictionary


1- List Of English Words (479k Words)

This repo offers a text file containing 479k English words for all your dictionary/word-based projects e.g: auto-completion / autosuggestion. The data comes in JSON format, and in text format. It also offers an example as in Python script.

GitHub - dwyl/english-words: :memo: A text file containing 479k English words for all your dictionary/word-based projects e.g: auto-completion / autosuggestion
:memo: A text file containing 479k English words for all your dictionary/word-based projects e.g: auto-completion / autosuggestion - GitHub - dwyl/english-words: :memo: A text file containing 479k…

2- Open-Source English Dictionary (176,023 definitions)

An open source English language dictionary with 176,023 definitions.

This is based on the Source Forge Project: MySQL English Dictionary , which in turn in based on the The Online Plain Text English Dictionary (OPTED) dictionary.

OPTED is a public domain English word list dictionary, based on the public domain portion of "The Project Gutenberg e-text of Webster's Unabridged Dictionary" which is in turn based on the 1913 US Webster's Unabridged Dictionary.




3- List of the Most Common English Words

The Unix dictionary contains far too many ridiculous words that even Google has trouble explaining, such as zuurveldt, cholecystenterorrhaphy and nonly:

$ cat /usr/share/dict/words | wc -l
235886
GitHub - dolph/dictionary: A list of the most popular English words.
A list of the most popular English words. Contribute to dolph/dictionary development by creating an account on GitHub.

4- wiktionary-dict



This project collects bilingual Wiktionary dictionaries in DSL-format, based on the work of Wiktionary User:Matthias_Buchmeier.

The scripts used to convert these dictionaries can be found here, and the original source files and other information can be found on the project homepage on Wiktionary.

GitHub - open-dsl-dict/wiktionary-dict: Offline bilingual dictionaries made using data from Wiktionary
Offline bilingual dictionaries made using data from Wiktionary - GitHub - open-dsl-dict/wiktionary-dict: Offline bilingual dictionaries made using data from Wiktionary

5- ipa-dict - Monolingual word lists with pronunciation information in IPA

This project aims to provide a series of dictionaries consisting of wordlists with accompanying phonemic pronunciation information in International Phonetic Alphabet (IPA) transcription for as many words as possible in as many languages / dialects / variants as possible.

Supported formats include: Raw data, JSON, CSV, XML and several other formats.

The included languages are: Arabic, German, Esperanto, Finish, Japanese, Khmer, Korea, Dutch, French, Persian, Romanian, Swedish, and many more.

GitHub - open-dict-data/ipa-dict: Monolingual wordlists with pronunciation information in IPA
Monolingual wordlists with pronunciation information in IPA - GitHub - open-dict-data/ipa-dict: Monolingual wordlists with pronunciation information in IPA

6- Syng: Chinese To English




Syng is a free, cross-platform, open-source, Chinese-To-English and English-To-Chinese dictionary. Syng is your study assistant to help you learn Chinese no matter where you are in your journey.

Syng v2 is now in beta. Please be patient as features get ported over from v1. In addition to a new interface, Syng v2 includes numerous under-the-hood enhancements on top of v1 that enable the possibility of more advanced features.

GitHub - sotch-pr35mac/syng: A free, open source, cross-platform, Chinese-To-English dictionary for desktops.
A free, open source, cross-platform, Chinese-To-English dictionary for desktops. - GitHub - sotch-pr35mac/syng: A free, open source, cross-platform, Chinese-To-English dictionary for desktops.

7- Simple Dictionary



An offline English to English dictionary with spell suggestions using the open source dictionary data. It is built on top of Java, and comes with HTML interface.

GitHub - subhashnottath/dictionary: An offline English to English dictionary with spell suggestions using the open source dictionary data
An offline English to English dictionary with spell suggestions using the open source dictionary data - GitHub - subhashnottath/dictionary: An offline English to English dictionary with spell sugge…

8- Saladict (Google Chrome, and Mozilla Firefox)


Saladict is an all-in-one professional pop-up dictionary and page translator. It supports mixed use of multiple search modes.

Saladict
Saladict is an all-in-one professional pop-up dictionary and page translator which supports multiple search modes, page translations, new word notebook and PDF selection searching.

9- FreeDict

The FreeDict project strives to be the most comprehensive source of truly free bilingual dictionaries. They are not just free of charge, but they give you the right to study, change and modify them, as long as you guarantee others these freedoms, too. FreeDict nowadays provides over 140 dictionaries in about 45 languages and thanks to its members, grows continuously.

FreeDict is avaiable to download for Windows, and GNU/ Linux.

Home — FreeDict

10- Dictionary API

A Free headless Dictionary API for developers.  The API usage has been ramping up rapidly, making it difficult for me to keep the server running due to increased AWS costs.

GitHub - meetDeveloper/freeDictionaryAPI: There was no free Dictionary API on the web when I wanted one for my friend, so I created one.
There was no free Dictionary API on the web when I wanted one for my friend, so I created one. - GitHub - meetDeveloper/freeDictionaryAPI: There was no free Dictionary API on the web when I wanted…

11- English Dictionary (Android)

An open-source free English dictionary for Android, written in Java. It features word search, TextToSpeech option, SQLite database backend, and Search History.

GitHub - ardakazanci/English-Dictionary: English Dictionary Android Mobile App
English Dictionary Android Mobile App. Contribute to ardakazanci/English-Dictionary development by creating an account on GitHub.

12- En Dictionary

A Web App Dictionary For Getting Word's Meaning / Examples / Pronounciation Using cam-dict. It is an open-source free project that is released under the MIT license.

GitHub - hadiazt/En-Dictionary: English To English Word Meaning and etc. Dictionary
English To English Word Meaning and etc. Dictionary - GitHub - hadiazt/En-Dictionary: English To English Word Meaning and etc. Dictionary

13- English Idioms for Italian and Spanish People

A collection of the most common English idioms with their related Italian and Spanish translation.

GitHub - tsumarios/English-Idioms: A collection of the most common English idioms with their related Italian and Spanish translation.
A collection of the most common English idioms with their related Italian and Spanish translation. - GitHub - tsumarios/English-Idioms: A collection of the most common English idioms with their rel…

14- Russian English dictionary

A dynamic web application of English-Russian dictionary with accessibility. Built with React and Skyeng API. I built this project to improve my understanding of React and Redux.

GitHub - domoratskii/english-dictionary: A dynamic web application of English-Russian dictionary with accessibility. Built with React and Skyeng API
A dynamic web application of English-Russian dictionary with accessibility. Built with React and Skyeng API - GitHub - domoratskii/english-dictionary: A dynamic web application of English-Russian d…

15- Mercury (iOS)

Mercury is a free iOS English dictionary.

GitHub - SkullMag/Mercury: Mercury is a free iOS English dictionary
Mercury is a free iOS English dictionary. Contribute to SkullMag/Mercury development by creating an account on GitHub.

16- Dictionary (Vietnamese and Japanese)

This is a responsive single-page-app dictionary using Angular and Bootstrap. Currently, it supports English-Vietnamese dictionary and going to support Japanese-Vietnamese dictionary.

GitHub - hoaftq/Dictionary: A dictionary web app with data automatically collected from other pages
A dictionary web app with data automatically collected from other pages - GitHub - hoaftq/Dictionary: A dictionary web app with data automatically collected from other pages


17- Acron (Qt)

Acorn is a lightweight and responsive English Dictionary application using the cross-platform Qt toolkit for its interface.

GitHub - jayzsh/Acorn: Acorn is a lightweight and responsive English dictionary app using Princeton’s WordNet lexical database and the Qt5 toolkit
Acorn is a lightweight and responsive English dictionary app using Princeton's WordNet lexical database and the Qt5 toolkit - GitHub - jayzsh/Acorn: Acorn is a lightweight and responsive Engli…

18- Web English dictionary app

English dictionary app using HTML, CSS, and JS.

GitHub - Koshyar-r/dictionary-app: English dictionary app using HTML, CSS and JS.
English dictionary app using HTML, CSS and JS. Contribute to Koshyar-r/dictionary-app development by creating an account on GitHub.

19- Open-source Dictionary for Firefox

GitHub - JonasHogman/firefox-dictionary: WebExtension for Firefox that provides Google Dictionary for Chrome-like functionality (except prettier and with more bugs).
WebExtension for Firefox that provides Google Dictionary for Chrome-like functionality (except prettier and with more bugs). - GitHub - JonasHogman/firefox-dictionary: WebExtension for Firefox that…

  • UKACD (UK Advanced Cryptics Dictionary), about 250000 words, is good for crossword setting and solving
  • YAWL (Yet Another Word List), about 250000 words, is a copyright-free American list popular among Unix users
  • Moby, about 600000 words, is part of Project Gutenberg
  • ABLE (Alternate British LExicon), 200000 words, is a UK-oriented list designed for word puzzles
  • SOWPODS, about 270000 words, is a standard word list used for Scrabble and other word games all over the world
  • TWL, about 180000 words, is a standard word list used for Scrabble and other word games in the United States and elsewhere
  • PDL, a public domain word list originally called PUBLIC.DICT.LARGE containing about 37000 reasonably common words with a slight academic bias
  • BNC, a word list derived from the British National Corpus containing about 470000 strings, the great majority of which are words
  • Broda, a list of about 390000 words aimed at US puzzlers

Friday, November 20, 2020

Create permanent BASH aliases in Linux

When creating an alias, for example
alias la="ls -la"
it exists until the terminal session is killed. When starting a new terminal window, the alias does not exist any more. The question is, how to create a "permanent" alias, one that exists in every terminal session?
Such aliases can be stored in the ~/.bash_aliases file.
 
That file is loaded by ~/.bashrc. The following lines need to be uncommented or added to enable the use of the ~/.bash_aliases file:

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

 
The aliased command will be available on any new terminal. To have the aliased command on any existing terminal one need to source ~/.bashrc from that terminal:
source ~/.bashrc

A one liner would be:
echo "alias la='ls-la'" >> ~/.bash_aliases && source ~/.bash_aliases
 
Another option would be to add the alias line into ~/.bashrc or into ~/.profile / ~/.bash_profile for remote logins. If the command should be executed for all users, put it into /etc/bash.bashrc.
 
The function below can be added to the .bashrc file.
function permalias () 
{ 
  alias "$*";
  echo alias "$*" >> ~/.bash_aliases
}
Then open a new terminal or run source ~/.bashrc in your current terminal. You can now create permanent aliases by using the permalias command, for example permalias cls=clear.

~/.bashrc is run every time you open a new terminal, whereas ~/.bash_profile is not.

In order to update the file, run . ~/.bashrc or source ~/.bashrc

Function from askubuntu.com:

# -----------------------------------
#  Create a new permanent bash alias
#
#  @param $1 - NAME
#  @param $2 - DEFINITION
# -----------------------------------
new-alias () { 
  if [ -z "$1" ]; then
    echo "alias name:" && read NAME
  else
    NAME=$1
  fi

  if alias $NAME 2 > /dev/null > /dev/null; then
    echo "alias $NAME already exists - continue [y/n]?" && read YN
    case $YN in
      [Yy]* ) echo "okay, let's proceed.";;
      [Nn]* ) return;;
      * ) echo "invalid response." && return;;
    esac
  fi

  if [ -z "$2" ]; then
    echo "alias definition:" && read DEFINITION
  else
    DEFINITION="$2"
  fi

  if [ -f ~/.bash_aliases ]; then
    echo "alias $NAME=\"$DEFINITION\"" >> ~/.bash_aliases
  else
    echo "alias $NAME=\"$DEFINITION\"" >> ~/.bashrc
  fi

  alias $NAME="$DEFINITION"
}

Frequently Used Linux Commands

 

File Viewing

Command Function
cat Display the contents of file
less Page through files
head show the top portion of a file
more display screenfuls of a file
tail display bottom portion of a file
nl count the number of lines in a file
wc count the number of lines, words and characters in a file
od View a binary file
tee display output on stdout and write it to a file simultaneously

File Management

Command Function
ls display file attributes
stat display file attributes
wc count the number of lines, words and characters in a file
file identify file types
touch set the time stamp of a file or directory
chgrp change the group of a file
chmod change the permissions (mode) of a file
chown change the owner of a file
chattr change advanced file attributes
lsattr display advanced file attributes

File Manipulation

Command Function
awk pattern-matching, programming language
csplit split a file
cut display columns of a file
paste append columns in a file
dircmp compare two directories
find find files and directories
perl scripting language
sed Stream Editor
sort sort a file
tr translate chracters in a file
uniq find unique or repeated lines in a file
xargs process multiple arguements


File Editing

Command Function
vi text editor
emacs text editor
sed Stream Editor

Locate Files

Command Function
find find files and directories
which locate commands within your search path
whereis locate standard files

File Compression and Archiving

Command Function
gzip compress a file using GNU Zip
gunzip uncompress a file using GNU Zip
compress compress a file using UNIX compress
uncompress uncompress a file using UNIX compress
bzip2 compress a file using block-sorting file compressor
bunzip2 uncompress a file using block-sorting file compressor
zip compress a file using Windows/DOS zip
unzip uncompress a file using Windows/DOS zip
tar read/write (tape) archives
cpio copy files to and from archives
dump dump a disk to tape
restore restore a dump
mt tape control programm

File Comparison

Command Function
diff find differences in two files
cmp compare two files
comm compare sorted files
md5sum compute the MD5 checksum of a file
sum compute the checksum of a file

Disks and File Systems

Command Function
df display free space
du display disk usage
mount mount a filesystem
fsck check aand repair a filesystem
sync Flush disk caches


Printing

Command Function
lpr print files
lpq view the print queue
lprm Remove print jobs
lpc line printer control program


Process Management

Command Function
ps list processes
w list users’ processes
uptime view the system load, amount of time it has been running, etc.
top monitor processes
free display free memory
kill send signals to processes
killall kill processes by name
nice set a processes nice value
renice set the nice value of a running process.
at run a job at a specific time
crontab schedule repeated jobs
batch run a job as the system load premits
watch run a programm at specific intervals
sleep wiat for a specified interval of time

Host Information

Command Function
uname Print system information
hostname Print the system’s hostname
ifconfig Display or set network interface configuration
host lookup DNS information
nslookup lookup DNS information (deprecated)
whois Lookup domain registrants
ping Test reachability of a host
traceroute Display network path to a host
Character based web-browser

Networking Tools

Command Function
ssh Secure remote access
telnet Log into remote hosts
scp Securely copy files between hosts
ftp Copy files between hosts
wget Recursively download files from a remote host
lynx

File and Directory Basics

Command Function
cd change directory
cp copy files
file determine a file’s contents
ls list files or directories
ln make a link to a file
mkdir make a directory
mv move (rename) a file
rm remove a file
rmdir remove a directory
http://www.linux-tutorial.info

Friday, September 11, 2020

Soffice from Command Line - MAN Pages

 

Name

libreoffice - LibreOffice office suite

SYNOPSIS

libreoffice [--accept=accept-string] [--base] [--calc] [--convert-to output_file_extension[:output_filter_name] [--outdir output_dir] file]... [--display display] [--draw] [--global] [--headless] [--help|-h|-?] [--impress] [--invisible] [--infilter="<filter>"] [--math] [--minimized] [-n file]... [--nodefault] [--nolockcheck] [--nologo] [--norestore] [-o file]... [-p file...] [--print-to-file [--printer-name printer_name] [--outdir output_dir] file]... [--pt printername file...] [--show Impress file]... [--unaccept=accept-string] [--terminate_after_init] [--view file]... [--web] [--writer] [file...]
lobase
localc
lodraw
lofromtemplate
loimpress
lomath
loweb
lowriter

DESCRIPTION

LibreOffice (LO for short) is a multi-platform office productivity suite. It was derived from OpenOffice.org 3.3 Beta on September 28, 2010.

libreoffice is a shell script that sets up the environment and passes the command line arguments to the soffice.bin binary.

Alternatively, the following helper scripts start the respective module:

sbase, scalc, sdraw, simpress, smath, sofficerc, swriter

OPTIONS

--accept=accept-string
Specify a UNO connect-string to create a UNO acceptor through which other programs can connect to access the API.
--base
Starts the wizard for a new Base document.
--calc
Starts with a new Calc document.
--convert-to output_file_extension[:output_filter_name] [--outdir output_dir] file...
Batch converts files. If --outdir is not specified then the current working directory is used as the output directory for the converted files. It implies --headless.

Examples:

--convert-to pdf *.doc

Converts all .doc files to PDFs.

--convert-to pdf:writer_pdf_Export --outdir /home/user *.doc

Converts all .doc files to PDFs using the settings in the Writer PDF export dialog and saving them in /home/user.

--display display
This option specifies the X server to use; see X(7)
--draw
Starts with a new Draw document.
--global
Starts with a new Global document.
--headless
Starts in "headless mode", which allows using the application without user a interface.

This special mode can be used when the application is controlled by external clients via the API.

It implies --invisible and strictly ignores any GUI environment. --quickstart does not work with this parameter.

--help|-h|-?
Lists LibreOffice command line parameters.
--impress
Starts with a new Impress document.
--invisible
Starts in invisible mode.

Neither the start-up logo nor the initial program window will be visible. LO can be controlled and documents and dialogs can be opened via the API.

When started with this parameter, it can only be quit using the taskmanager (Windows) or the kill command (UNIX based systems).

--quickstart does not work with this parameter.

--infilter="<filter>"
Force an input filter type if possible. For example --infilter="Calc Office Open XML" only
--math
Starts with a new Math document.
--minimized
Keeps the splash screen minimized.
-n template...
Creates the a new document from the given templates.
--nodefault
Starts LO without creating a new document. The next time you start LO, the welcome screen is shown.

It's used together with --nologo by quick starters. Note that --quickstart has no longer been supported since OpenOffice.org 2.0.0.

--nolockcheck
Disables the check for remote instances using the installation.
--nologo
Disables the splash screen at program start.
--norestore
Disables restart and file recovery after a system crash. It is possible that LO will try to restore a file it keeps crashing on, if that happens --norestore is the only way to start LO.
--nosplash
Disables the splash screen at program start.
-o file...
Opens the given files for editing, even templates.

Without -o a template file would create a new document derived from that template.

-p file...
Prints the given files to the default printer and ends. The splash screen does not appear.

If the file name contains spaces, then it must be enclosed in quotation marks.

--print-to-file [--printer-name printer_name] [--outdir output_dir] file...
Batch print files to file. If --printer-name is not specified the default printer is used. If --outdir is not specified then the current working directory is used as the output directory for the converted files.

Examples:

--print-to-file *.doc

Prints all .doc files to the current working directory using the default printer.

--print-to-file --printer-name nasty_lowres_printer --outdir /home/user *.doc

Prints all .doc files to /home/user directory using the nasty_lowres_printer.

--pt printername file...
Prints the given files to the printer printername and ends. The splash screen does not appear.

If a file name contains spaces, then it must be enclosed in quotation marks.

--quickstart --quickstart=no
Starts LO with it's quick starter. --quickstart disable the quick starter.

Does not work with --invisible or --headless.

--show Impress file...
Opens the given Impress files, starts the presentation and quits after they have finished.
--unaccept=accept-string
Closes an acceptor that was created with --accept option.

Use --unaccept=all to close all open acceptors.

--terminate_after_init
Starts LO and terminates after it registers some UNO services. Doesn't show the splash during startup.
--view file...
Opens the given files read-only creating a temporary copy of them at $TMPDIR.
--web
Starts with a new HTML document.
--writer
Starts with a new Writer document.