Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
5cb5189
Introduce cppjieba as a submodule for Chinese word segmentation
CrazySteve0605 Jul 23, 2025
fb4efef
Update what's new
CrazySteve0605 Jul 24, 2025
ae58e9b
Add comments for building script of cppjieba and its dependency
CrazySteve0605 Jul 24, 2025
06070c1
Update projectDocs/dev/createDevEnvironment.md
CrazySteve0605 Aug 1, 2025
2273a60
Update include/readme.md
CrazySteve0605 Aug 1, 2025
3d4d9f1
Remove changes in sconscript for localLIb
CrazySteve0605 Aug 1, 2025
1fbf05f
add building script for cppjieba
CrazySteve0605 Aug 4, 2025
7de7464
add JiebaSingleton wrapper and C API for NVDA segmentation
CrazySteve0605 Aug 5, 2025
f4cab8a
Merge branch 'master' into integrateCPPJieba
CrazySteve0605 Aug 5, 2025
d4c3a92
Merge branch 'master' into integrateCPPJieba
CrazySteve0605 Aug 6, 2025
0d92c08
Update GitHub action workflow to fetch cppjieba's submodule
CrazySteve0605 Aug 6, 2025
da662be
Update .gitignore for cppjieba
CrazySteve0605 Aug 6, 2025
38a12dc
Update building and setup script for cppjieba's dicts installation
CrazySteve0605 Aug 6, 2025
c60c2da
update copyright headers based on @seanbudd's suggestions
CrazySteve0605 Aug 9, 2025
c853b64
Update include/readme.md
CrazySteve0605 Aug 9, 2025
a643391
Merge branch 'master' into integrateCPPJieba
CrazySteve0605 Aug 28, 2025
3e495d2
add wrappers for user dict management
CrazySteve0605 Aug 28, 2025
11827fb
Merge branch 'master' into integrateCPPJieba
CrazySteve0605 Sep 4, 2025
1869ed0
simplify the initialization of cppjieba
CrazySteve0605 Sep 4, 2025
fe118ee
Merge branch 'master' into integrateCPPJieba
CrazySteve0605 Sep 6, 2025
49cc1fe
update cppjieba to the latest commit
CrazySteve0605 Sep 6, 2025
a9281f6
update .gitattributes for .hpp header files
CrazySteve0605 Sep 6, 2025
2955ca8
simplify helper of `cppjieba`
CrazySteve0605 Sep 7, 2025
53158b6
update changelog
CrazySteve0605 Sep 7, 2025
30120f8
update building script
CrazySteve0605 Sep 7, 2025
00796fe
revert installing script
CrazySteve0605 Sep 7, 2025
09b1890
fix building script
CrazySteve0605 Sep 7, 2025
bec5dc5
Merge branch 'master' into integrateCPPJieba
CrazySteve0605 Sep 9, 2025
b3e08ee
update helper of `coojieba`
CrazySteve0605 Sep 9, 2025
0f507d5
Merge branch 'master' into integrateCPPJieba
CrazySteve0605 Sep 20, 2025
c2cbb24
Revert "Update projectDocs/dev/createDevEnvironment.md"
CrazySteve0605 Sep 20, 2025
194a69e
avoid using compilation time path
CrazySteve0605 Sep 20, 2025
2e730d6
Update .gitattributes
CrazySteve0605 Sep 20, 2025
30e855f
Merge branch 'try-chineseWordSegmentation-staging' into integrateCPPJ…
michaelDCurran Sep 22, 2025
b327e23
Merge branch 'try-chineseWordSegmentation-staging' into integrateCPPJ…
michaelDCurran Sep 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@
path = .vscode
url = https://github.com/nvaccess/vscode-nvda.git
ignore = dirty
[submodule "include/cppjieba"]
path = include/cppjieba
url = https://github.com/yanyiwu/cppjieba
1 change: 1 addition & 0 deletions copying.txt
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ In addition to these dependencies, the following are also included in NVDA:
- Microsoft Detours: MIT
- Python: PSF
- NSIS: zlib/libpng
- cppjieba: MIT

Furthermore, NVDA also utilises some static/binary dependencies, details of which can be found at the following URL:

Expand Down
1 change: 1 addition & 0 deletions include/cppjieba
Submodule cppjieba added at 9b4090
6 changes: 6 additions & 0 deletions include/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ Used in chrome system tests.
https://github.com/microsoft/wil/

Fetch latest from master.

### cppjieba
[cppjieba](https://github.com/yanyiwu/cppjieba)

Fetch latest from master.
Used for Chinese text segmentation.
14 changes: 12 additions & 2 deletions nvdaHelper/local/sconscript
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###
# This file is a part of the NVDA project.
# URL: http://www.nvda-project.org/
# Copyright 2006-2010 NVDA contributers.
# Copyright 2006-2025 NVDA contributers.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2.0, as published by
# the Free Software Foundation.
Expand Down Expand Up @@ -113,8 +113,18 @@ localLib = env.SharedLibrary(
"Gdiplus",
"Iphlpapi",
"Ws2_32",
"runtimeobject",
"runtimeobject",
],
)

cppjiebaPath = Dir("#include/cppjieba") # for Chinese word segmentation
cppjiebaSrcPath = cppjiebaPath.Dir("include/cppjieba")
LimonpPath = cppjiebaPath.Dir("deps/limonp") # cppjieba's dependency
LimonpSrcPath = LimonpPath.Dir("include/limonp")

env.Prepend(CPPPATH=[
cppjiebaSrcPath,
LimonpSrcPath.Dir(".."),
])

Return("localLib")
1 change: 1 addition & 0 deletions projectDocs/dev/createDevEnvironment.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ If you aren't sure, run `git submodule update` after every git pull, merge or ch
* [Java Access Bridge 32 bit, from Zulu Community OpenJDK build 17.0.9+8Zulu (17.46.19)](https://github.com/nvaccess/javaAccessBridge32-bin)
* [Windows Implementation Libraries (WIL)](https://github.com/microsoft/wil/)
* [NVDA DiffMatchPatch](https://github.com/codeofdusk/nvda_dmp)
* [cppjieba](https://github.com/yanyiwu/cppjieba), commit '9b40903ed6cbd795367ea64f9a7d3f3bc4aa4714'

#### Build time dependencies

Expand Down
1 change: 1 addition & 0 deletions user_docs/en/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Please refer to [the developer guide](https://download.nvaccess.org/documentatio
* Updated `include` dependencies:
* detours to `9764cebcb1a75940e68fa83d6730ffaf0f669401`. (#18447, @LeonarddeR)
* The `nvda_dmp` utility has been removed. (#18480, @codeofdusk)
* Added [cppjieba](https://github.com/yanyiwu/cppjieba) as a git submodule for word segmentation. (#18548, @CrazySteve0605)

#### Deprecations

Expand Down