Text Factory User Guide¶
This idea of this google-doc add-on is to save users time by providing several text utilities. With this add-on, users can insert datetime from the pulldown menu directly. It also helps users to add parentheses to selection, add thousands separators to numbers and do conversion between width form of fonts. The datetime format is customizable. It can be used in different cultural context.
Inserts the datetime into the document.
The functions on this section are applied to text selection. You have to select some text before proceeding. Like this:
Put into Parentheses¶
This function add paired symbols to your text selection. For example:
These are options that you can use to encapsulate your selection. Just click on your favorite symbol to make it happen.
Add Thousands Separator¶
This function adds thousands separators into your selection. Only the numbers in the selection would be applied.
Convert Letter Case¶
This function converts the letter case in the selection. There are three options: “lower” button converts all alphabets to lowercase, “Title” button converts the first letter to uppercase and the others to lowercase, “UPPER” button converts all alphabets to uppercase.
Conversion of Fullwidth/Halfwidth¶
This function converts the selection between fullwidth and halfwidth form. The fullwidth and halfwidth form is a symbol in two kinds of writing style. The fullwidth form is visually double width than the halfwidth one, in fact, these two are different unicode characters. Below are some characters of halfwidth and fullwidth.
Conversion of Fullwidth/Halfwidth Punctuations¶
This function is only available for CJK locale. In context of punctuations, the mappings between fullwidth and halfwidth forms are different. For example, the halfwidth full stop “.” should maps to “。”, not “．”(this is what the above “Conversion of Fullwidth/Halfwidth” does). This function only converts punctuation symbols in CJK writing traditions. Below is the mapping table of the punctuation conversion:
|Halfwidth To Fullwidth||Fullwidth To Halfwidth|
Step-by-Step: How to know what’s wrong by the Chrome Console.¶
- Open the Chrome and a Google Docs Document.
- Open the sidebar of the TextFactory by “View more options”
- In the sidebar, click the “Edit Format” button on the lower right.
[Before you are going to press on the keyboard, please mouse-click on any empty area in the sidebar again to make sure the sidebar being the focus frame.]
4.1 For MS Windows users, please open the developer tool by Ctrl+Shift+J , then click on the tab of “Console”, it would something like this:
4.2 For Mac OS users, please open the developer tool by ⌘+Option+J , then click on the tab of “Console”, it would something like this:
- please take a screenshot of the console which includes the message on the console as much as possible.
- Appreciation! it’s all. Please mail the screenshots to me at firstname.lastname@example.org
If you have any question about the console, you may consult this document of Google: https://developer.chrome.com/devtools/docs/console
Welcome any suggestion and comments. Contacts: iapyeh＠gmail.com
Open all the source codes to be accessible on the Github repository. (repository name: TextFactory)
feature: enable user to set time zone manually
fixes: Typo, Calendar in daylight saving area, workaround for script’s issue #36759856
format: %+d, %enB and %enb. For “%+d %enB, %Y” would insert “1st October 2017”.
feature: insert date from calendar
feature: add format for the Hebrew and lunar calendar.
You can now add a “*” in the format to remove the leading zero. For example, if “%d” yields “02”, then the “%*d” would be “2”. This is also valid for %h, %j, %m,…ect.
feature: the leading zero will be removed by prefixing * to the existing format.