Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix code style | Peng Wu | 2023-01-14 | 2 | -3/+3 |
| | |||||
* | Fix libpinyin crash on ARMv7 | Matias Larsson | 2022-11-29 | 5 | -20/+27 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the alignment trap in get_unigram_frequency(). Fix also other places where this same trap could happen (depending on compiler and surrounding code). The trap happened when the ARM GCC generated a SIMD instruction (specifically VLDR) to load 32 bits in a single instruction, and when the memory address was not aligned to 32 bits. VLDR traps if the address is not aligned. GCC generated the instruction because of the cast to uint32 from the address. The fix is to allocate a uint32 variable in stack and use memcpy to copy the data to that variable. This way we ensure that appropriate instructions are generated. **Links** About the issue with GCC: https://trust-in-soft.com/blog/2020/04/06/gcc-always-assumes-aligned-pointer-accesses/ How Linux does it: https://elixir.bootlin.com/linux/v5.10.155/source/include/linux/unaligned/memmove.h#L13 ARM documentation: https://documentation-service.arm.com/static/5f8dc043f86e16515cdbbc92?token= See 'A3.2.1 Unaligned data access' | ||||
* | Support longer candidate | Peng Wu | 2022-09-21 | 1 | -1/+1 |
| | |||||
* | Write search_suggestion_with_matrix function | Peng Wu | 2022-09-14 | 2 | -0/+99 |
| | |||||
* | Write FacadeChewingTable2::search_suggestion method | Peng Wu | 2022-09-09 | 1 | -0/+26 |
| | |||||
* | Write ChewingLargeTable2::search_suggesion method for Kyoto Cabinet | Peng Wu | 2022-09-08 | 3 | -1/+167 |
| | |||||
* | Write ChewingLargeTable2::search_suggesion method for Berkeley DB | Peng Wu | 2022-09-07 | 2 | -0/+164 |
| | |||||
* | Write ChewingTableEntry::search_suggestion method | Peng Wu | 2022-09-02 | 2 | -4/+82 |
| | |||||
* | Fix Kyoto Cabinet usage | Peng Wu | 2022-08-30 | 2 | -3/+8 |
| | |||||
* | Fix pinyin.cpp | Peng Wu | 2022-08-29 | 1 | -1/+1 |
| | |||||
* | Write FacadePhraseTable3::search_suggestion method | Peng Wu | 2022-08-25 | 1 | -0/+25 |
| | |||||
* | Fix a typo | Peng Wu | 2022-08-25 | 1 | -1/+1 |
| | |||||
* | Write search_suggestion method | Peng Wu | 2022-07-26 | 5 | -5/+119 |
| | |||||
* | Write compare_phrase function | Peng Wu | 2022-07-19 | 2 | -0/+76 |
| | |||||
* | Use abort function instead of assert macro | Peng Wu | 2022-06-06 | 12 | -40/+40 |
| | |||||
* | Use check_result macro in src directory | Peng Wu | 2022-06-01 | 10 | -37/+41 |
| | |||||
* | Switch from GrassDB to ProtoTreeDB | Peng Wu | 2022-03-30 | 2 | -4/+4 |
| | |||||
* | Update special_table.h2.6.1 | Peng Wu | 2021-09-15 | 1 | -0/+1 |
| | |||||
* | Update full pinyin parser code | Peng Wu | 2021-03-25 | 1 | -1/+1 |
| | |||||
* | update special_table.h | Zhangyuan Nie | 2021-03-25 | 1 | -0/+1 |
| | |||||
* | Fix delimiter for reading table files on macOS | Weixuan XIAO | 2020-11-26 | 5 | -0/+25 |
| | | | | | | | | | | | On macOS under llvm/clang++, the default delimiter for format string is weird: it cannot read full CJK characters from the table files. This patch adds macOS-specified code to make "\t" and " " the implicit delimiter. Ref: https://stackoverflow.com/questions/12885628/changing-the-scanf-delimiter | ||||
* | update special_table.h | Peng Wu | 2020-11-10 | 1 | -0/+1 |
| | |||||
* | Fixes Berkeley DB cursor usage | Peng Wu | 2020-10-14 | 4 | -0/+15 |
| | |||||
* | Fixes copy_bdb function | Peng Wu | 2020-10-10 | 1 | -0/+4 |
| | |||||
* | support database format in table.conf | Peng Wu | 2020-09-27 | 2 | -1/+48 |
| | |||||
* | Use Kyoto Cabinet snapshot feature | Peng Wu | 2020-09-23 | 4 | -0/+32 |
| | |||||
* | improve Kyoto Cabinet usage | Peng Wu | 2020-08-21 | 3 | -9/+9 |
| | |||||
* | fixes merge_single_gram function | Peng Wu | 2020-08-21 | 1 | -0/+2 |
| | |||||
* | Copy the data when merge into single ngram. | Weng Xuetian | 2020-08-18 | 1 | -4/+4 |
| | | | | system and user single ngram might be invalidated later. | ||||
* | improve full pinyin parser | Peng Wu | 2020-08-17 | 1 | -13/+16 |
| | |||||
* | improve full pinyin parser auto correction | Peng Wu | 2020-07-24 | 1 | -9/+22 |
| | |||||
* | refactor parse_one_key method | Peng Wu | 2020-07-24 | 3 | -15/+23 |
| | |||||
* | update pinyin_parser_table.h | Peng Wu | 2020-07-24 | 1 | -660/+660 |
| | |||||
* | Fixes typo | Peng Wu | 2020-07-20 | 1 | -1/+1 |
| | |||||
* | update pinyin_custom2.h for C language compatibility | Peng Wu | 2020-02-27 | 1 | -19/+16 |
| | |||||
* | remove pinyin_custom3.h | Peng Wu | 2020-02-27 | 1 | -142/+0 |
| | |||||
* | improve autoconf for libpinyin.la and libzhuyin.la | Peng Wu | 2019-11-28 | 1 | -2/+0 |
| | |||||
* | improve autoconf for libpinyin_internal.a | Peng Wu | 2019-11-28 | 1 | -9/+7 |
| | |||||
* | Revert "not use in-memory DBM in src/storage" | Peng Wu | 2019-01-17 | 14 | -81/+6 |
| | | | | This reverts commit 5607752c2b989849923676f4a925e5315a3303d4. | ||||
* | fixes fscanf usage | Peng Wu | 2018-01-25 | 6 | -7/+7 |
| | |||||
* | write is_valid_zhuyin method | Peng Wu | 2017-12-28 | 3 | -0/+29 |
| | |||||
* | update zhuyin_table.h | Peng Wu | 2017-12-28 | 1 | -0/+12102 |
| | |||||
* | update special_table.h | Peng Wu | 2017-12-28 | 1 | -20/+20 |
| | |||||
* | not use in-memory DBM in src/storage | Peng Wu | 2017-06-19 | 14 | -6/+81 |
| | |||||
* | Fix a typo: omited -> omitted | Felix Yan | 2017-06-12 | 1 | -1/+1 |
| | |||||
* | handle zhuyin table file in src/storage | Peng Wu | 2017-05-25 | 7 | -18/+63 |
| | |||||
* | import libzhuyin.pc.in | Peng Wu | 2017-05-16 | 1 | -1/+4 |
| | |||||
* | import gen_zhuyin_table.cpp and test_zhuyin.cpp | Peng Wu | 2017-05-15 | 1 | -1/+1 |
| | |||||
* | support zhuyin table in table_info.cpp | Peng Wu | 2017-05-11 | 1 | -2/+7 |
| | |||||
* | write zhuyin_custom2.h | Peng Wu | 2017-04-24 | 1 | -0/+45 |
| |