| 1 |
File generate/Unicode/README.TXT |
| 2 |
Paul Boersma 2018,2022,2024,2025 |
| 3 |
|
| 4 |
Steps to generate the source file UCD_features_generated.h, |
| 5 |
which is to be put in the kar folder: |
| 6 |
|
| 7 |
1. Download UnicodeData.txt from unicode.org. |
| 8 |
|
| 9 |
2. Prepend the following header, using a simple text editor: |
| 10 |
|
| 11 |
code;name;category;combining;bidi;decomp;num1;num2;num3;mirror;dum1;dum2;upper;lower;title |
| 12 |
|
| 13 |
After this, the file can be read as a Table in Praat with |
| 14 |
"Read Table from semicolon-separated file...". |
| 15 |
After that, the Table can be viewed with "View & Edit", |
| 16 |
and it is easy to extract information with commands such as |
| 17 |
"Extract rows where column (text)..." and "Extract rows where...". |
| 18 |
|
| 19 |
For information on the meanings of the features, see the following attached files (version 16, from August 2024): |
| 20 |
- UAX #44 Unicode Character Database 16.0.0.html (remove colon from original file name) |
| 21 |
- UnicodeData File Format.html |
| 22 |
- UnicodeStandard.pdf |
| 23 |
|
| 24 |
3. Run the script UCD_features_generated_h.praat. |
| 25 |
This creates UCD_features_generated.h in the current folder. |
| 26 |
The details of the process are discussed in UCD_features_generated_h.praat. |
| 27 |
|
| 28 |
This step is computationally intensive, and therefore a good test of the speed of the |
| 29 |
Praat scripting language. |
| 30 |
|
| 31 |
The measured time on my 2018 MacBook Pro with 2.9 GHz Intel Core i9: |
| 32 |
|
| 33 |
Praat 6.2.12: 24.6 seconds. |
| 34 |
|
| 35 |
The measured time on my 2023 MacBook Pro with M3 Max processor: |
| 36 |
|
| 37 |
Praat 6.4.12: 10.0 seconds. |
| 38 |
Praat 6.4.30: 9.25 seconds. |
| 39 |
|
| 40 |
4. Inspect UCD_features_generated.h and put it in the kar folder by hand. |
| 41 |
|
| 42 |
5. Run the script UnicodeData_h.praat. |
| 43 |
This creates UnicodeData.h in the current folder. |
| 44 |
|
| 45 |
6. Inspect UnicodeData.h and put it in the kar folder by hand. |