Skip to content

Commit

Permalink
[cathaylab.nan-latn-tw.taigi] on behalf of author
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLRowe authored Feb 11, 2025
1 parent 6703cdf commit b65bcbe
Show file tree
Hide file tree
Showing 9 changed files with 75,784 additions and 0 deletions.
6 changes: 6 additions & 0 deletions experimental/cathaylab/cathaylab.nan-latn-tw.taigi/HISTORY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
taigi Change History
====================

1.0 (2025-01-24)
----------------
* Created by cathaylab
21 changes: 21 additions & 0 deletions experimental/cathaylab/cathaylab.nan-latn-tw.taigi/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright © 2025 cathaylab

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
23 changes: 23 additions & 0 deletions experimental/cathaylab/cathaylab.nan-latn-tw.taigi/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
taigi lexical model
===================

Description
-----------
Taigi model for Tâi-gí pe̍h-ōe-jī

Links
-----

Copyright
---------
See [LICENSE.md](LICENSE.md)

Supported Platforms
-------------------
* iPhone
* iPad
* Android phone
* Android tablet
* Mobile devices
* Tablet devices

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<KeymanDeveloperProject>
<Options>
<Version>2.0</Version>
<CompilerWarningsAsErrors>True</CompilerWarningsAsErrors>
<CheckFilenameConventions>True</CheckFilenameConventions>
<SkipMetadataFiles>True</SkipMetadataFiles>
<ProjectType>lexicalmodel</ProjectType>
</Options>
</KeymanDeveloperProject>
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="utf-8"?>
<Package>
<System>
<KeymanDeveloperVersion>17.0.334.0</KeymanDeveloperVersion>
<FileVersion>12.0</FileVersion>
</System>
<Options>
<ExecuteProgram></ExecuteProgram>
<ReadMeFile>readme.htm</ReadMeFile>
<LicenseFile>..\LICENSE.md</LicenseFile>
<WelcomeFile>welcome.htm</WelcomeFile>
<MSIFileName></MSIFileName>
<MSIOptions></MSIOptions>
</Options>
<StartMenu>
<Folder></Folder>
<Items/>
</StartMenu>
<Info>
<Name URL="">Taigi model for Tâi-gí pe̍h-ōe-jī</Name>
<Copyright URL="">Copyright © cathaylab</Copyright>
<Author URL="mailto:[email protected]">cathaylab</Author>
<Version URL="">1.0</Version>
<Description URL="">Taigi model for Taiwanese Tâi-gí pe̍h-ōe-jī</Description>
</Info>
<Files>
<File>
<Name>..\build\cathaylab.nan-latn-tw.taigi.model.js</Name>
<Description></Description>
<CopyLocation>0</CopyLocation>
<FileType>.js</FileType>
</File>
<File>
<Name>welcome.htm</Name>
<Description></Description>
<CopyLocation>0</CopyLocation>
<FileType>.htm</FileType>
</File>
<File>
<Name>readme.htm</Name>
<Description></Description>
<CopyLocation>0</CopyLocation>
<FileType>.htm</FileType>
</File>
<File>
<Name>..\LICENSE.md</Name>
<Description></Description>
<CopyLocation>0</CopyLocation>
<FileType>.md</FileType>
</File>
</Files>
<Keyboards/>
<LexicalModels>
<LexicalModel>
<Name>taigi</Name>
<ID>cathaylab.nan-latn-tw.taigi</ID>
<Languages>
<Language ID="nan-Latn-TW">Pe̍h-ōe-jī</Language>
</Languages>
</LexicalModel>
</LexicalModels>
<Strings/>
</Package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

const source: LexicalModelSource = {
format: 'trie-1.0',
wordBreaker: {
use: 'default', // we want to use the default word breaker, BUT!
// CUSTOMIZE THIS:
joinWordsAt: ['-'], // join words that contain hyphens
}
sources: ['wordlist.tsv'],
punctuation: {
insertAfterWord: ""
}
languageUsesCasing: true,
searchTermToKey: function(term, applyCasing) {
return Array.from(term)
.map(function(c) { return applyCasing('lower', c) };
}
};

export default source;
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>taigi</title>
<style type="text/css">
p { font: 10pt Tahoma; }
h1 { font: bold 16pt Tahoma; color: #4444cc; margin-bottom: 2px }
h2 { font: bold 12pt Tahoma; color: #4444cc; }
</style>
</head>
<body>

<h1>taigi</h1>

<p>
Taigi model for Tâi-gí Pe̍h-ōe-jī
</p>

<p>Copyright © cathaylab</p>

</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Start Using taigi</title>
<style type="text/css">
p { font: 10pt Tahoma; }
h1 { font: bold 16pt Tahoma; color: #4444cc; margin-bottom: 2px }
h2 { font: bold 12pt Tahoma; color: #4444cc; }
</style>
</head>
<body>

<h1>Start Using taigi</h1>

<p>
Taigi model for Tâi-gí Pe̍h-ōe-jī
</p>

<h1>Wordlist Model Documentation</h1>

<!-- Insert HTML documentation here -->

<p>Copyright © cathaylab</p>

</body>
</html>
Loading

0 comments on commit b65bcbe

Please sign in to comment.