| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Simple tools to replace a piece of text with a desired function e.g. paragraph to sentences, paragraphs to words, removing punctuation marks, etc.
Paragraph-to-Sentence Converter helps convert a paragraph into a series of sentences that end with a full stop, a question mark, an exclamation mark, or a semi-colon. This tool can be useful if you have a large block of text that you want to break down into smaller sentences, designed keeping in mind the Mozilla Common Voice Sentence Collector.
These Python tools sort a list of text lines based on the years specified in the Odia script. This script rearranges a list in ascending order from the earliest to the latest year, and this list does the reverse (descending order). It outputs the sorted list to a new file, preserving the original content.
To use download the files into a folder where your text file (e.g. (list.txt) is located. On Linux/MacOS Navigate to the folder using Terminal and run:
This script takes any Unicode character(s) as input and displays its Unicode code points. To be able to use this, you need to create a reusable function for this code block in Zsh, by defining a function in your Zsh configuration file (~/.zshrc) in a Unix-based computer (e.g. Linux or MacOS).
Open your Zsh configuration file for editing. This file is typically located at ~/.zshrc.
nano ~/.zshrc
Add the following function definition to the file. This function, named unicodeit, takes a string as an argument and prints the Unicode code points for each character in the string.
unicodeit() { for c in $(echo "$1" | sed 's/./& /g'); do printf "U+%04x %s\n" "'$c" "$c" done }
Save your changes and exit the text editor.
Press Ctrl + O to write the changes. Press Enter (return in MacOS) to confirm the filename. Press Ctrl + X to exit the text editor.
To apply the changes immediately, source your Zsh configuration file:
source ~/.zshrc
. Use unicodeit Function:
Now, you can use the unicodeit function in your terminal. Provide a string of characters as an argument to get the Unicode code points for each character.
unicodeit "apple"
This will output: U+0061 a U+0070 p U+0070 p U+006c l U+0065 e
| Back | FazBrowse Home | New Git URL |