All Projects → LingDong- → Cope

LingDong- / Cope

A modern IDE for writing classical Chinese poetry 格律诗编辑程序

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Cope

Vscodium
binary releases of VS Code without MS branding/telemetry/licensing
Stars: ✭ 14,639 (+3943.92%)
Mutual labels:  ide, editor
Theia
Eclipse Theia is a cloud & desktop IDE framework implemented in TypeScript.
Stars: ✭ 15,920 (+4297.79%)
Mutual labels:  ide, editor
Zerobranestudio
Lightweight Lua-based IDE for Lua with code completion, syntax highlighting, live coding, remote debugger, and code analyzer; supports Lua 5.1, 5.2, 5.3, 5.4, LuaJIT and other Lua interpreters on Windows, macOS, and Linux
Stars: ✭ 2,255 (+522.93%)
Mutual labels:  ide, editor
Darcula
A Vim color scheme reproduction of the official JetBrains IDE Darcula theme
Stars: ✭ 158 (-56.35%)
Mutual labels:  ide, editor
Slingcode
personal computing platform
Stars: ✭ 277 (-23.48%)
Mutual labels:  ide, editor
Pervane
Plain text file based note taking and knowledge base building tool, markdown editor, simple browser IDE.
Stars: ✭ 159 (-56.08%)
Mutual labels:  ide, editor
Edi
Edi - The open source text editor IDE based on AvalonDock and AvalonEdit
Stars: ✭ 220 (-39.23%)
Mutual labels:  ide, editor
Atheos
A self-hosted browser-based cloud IDE, updated from Codiad IDE
Stars: ✭ 144 (-60.22%)
Mutual labels:  ide, editor
Dexed
IDE for the D programming language, its compilers, tools and libraries
Stars: ✭ 255 (-29.56%)
Mutual labels:  ide, editor
Learn Vim
Vim 实操教程(Learning Vim)Vim practical tutorial.
Stars: ✭ 1,166 (+222.1%)
Mutual labels:  chinese, editor
Lighttable
The Light Table IDE ⛺
Stars: ✭ 11,657 (+3120.17%)
Mutual labels:  ide, editor
Intellij Micropython
Plugin for MicroPython devices in PyCharm and IntelliJ
Stars: ✭ 312 (-13.81%)
Mutual labels:  ide, editor
Oni
Oni: Modern Modal Editing - powered by Neovim
Stars: ✭ 11,466 (+3067.4%)
Mutual labels:  ide, editor
Radasm2
RadASM v2
Stars: ✭ 161 (-55.52%)
Mutual labels:  ide, editor
Komodoedit
Komodo Edit is a fast and free multi-language code editor. Written in JS, Python, C++ and based on the Mozilla platform.
Stars: ✭ 1,972 (+444.75%)
Mutual labels:  ide, editor
Bridge.
Minecraft Add-on Editor | We strive to provide the best development experience possible
Stars: ✭ 193 (-46.69%)
Mutual labels:  ide, editor
Ethereum Studio
Official Ethereum Studio project repository. And IDE specially tailored to make it as simple as possible to onboard new users into the Ethereum ecosystem
Stars: ✭ 144 (-60.22%)
Mutual labels:  ide, editor
React Codemirror
CodeMirror component for React. @codemirror https://uiwjs.github.io/react-codemirror/
Stars: ✭ 142 (-60.77%)
Mutual labels:  ide, editor
Composer
Visual and code editor for Common Workflow Language
Stars: ✭ 232 (-35.91%)
Mutual labels:  ide, editor
Spacevim
A community-driven modular vim/neovim distribution - The ultimate vimrc
Stars: ✭ 17,558 (+4750.28%)
Mutual labels:  ide, editor

COPE - 格律诗编辑程序

Chinese Old Poem Editor - A modern IDE for writing classical Chinese poetry.

Features 功能

  • A tool for writing, editing, and managing user poems. 一个帮助创作、编辑、管理格律诗作品的工具
  • Automatically recognize tone patterns and detect errors. 自动检查平仄等格律规则。(失粘/失对/孤平/三平调/落韵)
  • Support for all 4 variations of 5-character and 7-character Jueju and Lüshi. 支持五七律绝的四种变格。
  • Built-in dictionaries. 内置韵书(平水韵/中华新韵)及康熙字典
  • Provide insights into user poems using data analysis. 机器学习分析用户作品并与《全唐诗》唐人诗句比对。

Installation 安装

Binaries

For macOS and Windows binaries, download the latest version on Releases page. 下载链接

Building

First, install node.js, including npm.

cd into the project directory, and type npm install. This will install all the dependencies.

Finally, npm start to run the app.

Usage 使用

Click on left side of a cell to edit its contents. The tonal pattern hints will be shown on the right. Select rhyming dictionary and verse form from the tool bar. New cells will be automatically added once you filled up empty cells, or, you can manage them by clicking Cells from the menu bar. Add comments/title/attribution to your poem by preceding a line with a octothorpe (#).

Before you fill in a character, its correct tonal pattern is shown on the right in the corresponding position. After you do so, a color-coded icon is shown on the upper right corner, indicating the tonal pattern of the character, and whether it is acceptable, along with a line pointing to the error message if it is not. The checker follows the general rule of "一三五不论", yet also ensures that "孤平" and "三平调" errors do not occur. The rhyme of the poem is automatically inferred, and checked agianst each character that needs to rhyme.

You can open the rhyming dictionary as well as Kang Xi dictionary by clicking on < button on the right side of the tool bar. Type a character in the search bar, and it will be highlighted if it is in the current rhyme group. Press Enter to jump to the rhyme group it belongs to. Click on a character in the group to show its definition in Kang Xi dictionary.

Poem Analysis Tools 分析工具

You can see how your poem compares to those of Tang dynasty poets choosing from Analysis menu on the menu bar.

Bag-of-Words Embedding 词袋嵌入

A 1024D feature vector is generated for each of 256 Tang dynasty poets by applying bag-of-words model to their poems in Quan Tang Shi. A similar vector is generated for the user's poem. UMAP is used to reduce the dimension to 2, so the user can see where their poem lies in feature space among Tang dynasty poets. A list of nearest-neighbors are shown on the top left.

(Note on performance of the B-O-W model: When used on 24153 poems of 64 most prolific poets of Tang Dynasty, a classifier powered by finding nearest-neighbor of B-O-W vectors gives a Top-1 accuracy of 33.4%, Top-5 accuracy of 65.6%, and Top-10 accuracy of 79.8%.)

上图为在李商隐《杜工部座中离席》上的运行结果,该诗应为义山模仿杜甫风格的作品。算法运行结果显示两人皆在此诗风格相似度前十之内。 上图为在李商隐《韩碑》上的运行结果,该诗应为义山模仿韩愈风格的作品。算法运行结果显示两人皆在此诗风格相似度前十之内。

Line-wise Nearest Neighbor 逐句近邻

For each line in the user's poem, Quan Tang Shi is searched to find lines that are the most similar to it. This might help the user write better poems, as it shows how the great masters from the past delivered similar meanings.

上图为在清人黄景仁《绮怀》诗上的运行结果,该诗前两联应为化用李义山,为算法正确发掘。

Markov Chain Edit Suggestions 自动补全

Characters that are not filled or violate tonal rules in the current poem are automatically replaced with suggested edits. Optionally uses 对偶/对仗. The poetry style (诗风) can also be selected from those of Tang Dynasty poets. Although this functionality can also be used to generate entire poems (and it does so pretty well), such use is not encouraged as it does not coincide with the purpose of the software as an editor. Check out this project of mine for a full Chinese poetry generator.

TODO

  • More data analysis tools
  • Support for 词/曲
  • More file options: managing notebooks, import/export etc.

All suggestions and pull requests are welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].