Word Table Sync

by yjs
5
4
3
2
1
Score: 50/100

Description

obsidian's community pulgin

Reviews

No reviews yet.

Stats

0
stars
53
downloads
0
forks
42
days
6
days
6
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
10
commits

Latest Version

7 days ago

Changelog

1.3.4

Example sentences (new)

  • Review cards show example sentences under each word, read from a JSON sentence library (path configurable, default 单词例句库.json).
  • One sentence per sense of the meaning column; numbering (1. 2. 3.) appears only when a word has more than one sense.
  • The target word is bolded, including common inflections (tuned, justified, lasting).
  • The pending-mastery section shows sentences as well.

Sidebar

  • Cards keep only the review window and the code.
  • Clicking a word opens the source table and centers the row in the editor.

Plain-text list (单词查看.md)

  • Order is now overdue → due today → pending mastery.
  • Deleting a word counts as one review; deleting a completed 6/6 word confirms mastery and archives it.

Fixes

  • Sentence lookup no longer matches a shorter key (par no longer borrows parallel's sentences).
  • Sentence keys ignore ==highlight==, <br>, parenthetical notes and stray numbering in the word cell.

Full changelog: older entries are kept in the header comment of main.js.

README file from

Github

Word Table Sync

An Obsidian plugin for managing a Markdown vocabulary table with spaced review scheduling, a review sidebar, and per-meaning example sentences.

Features

  • Automatically detects the vocabulary table in a note (header names are free-form).
  • Works with short binary codes such as 1, 11, 111, 1111, 11111, 111110; everything is normalized to 7 digits internally.
  • The 7th bit is v: 1 means the word is mastered and the row is moved to the archive table; setting it back to 0 reactivates the word.
  • Review dates and progress are stored in a JSON state file keyed by permanent UUID, so editing a row never resets its schedule.
  • Review sidebar groups entries as overdue → due today → pending mastery, with one-click 打卡 / 确认熟练.
  • Each card shows only the review window and the code, followed by example sentences taken from a JSON sentence library:
    • one sentence per sense of the meaning column;
    • numbered 1. 2. 3. only when a word has more than one sense;
    • the target word (including common inflections) is bolded.
  • Clicking a word opens the source table and centers the row in the editor.
  • 单词查看.md (plain-text list for mobile widgets) is regenerated in the same order: overdue → today → pending mastery. Deleting a word there counts as one review; deleting a completed 6/6 word confirms mastery and archives it.
  • Archives, reactivates, keeps daily snapshots, an autosave copy, and a diagnostics log.

Example sentence library

A JSON file in the vault (path configurable in settings, default 单词例句库.json):

{
  "words": {
    "abandon": { "meaning": "v. 放弃", "sentences": ["They had to abandon the plan because of the storm."] },
    "tune": {
      "meaning": "1. v. 调节引擎 2. v. 调音 3. n. 曲调",
      "sentences": [
        "The mechanic tuned the engine so that it ran more smoothly.",
        "He tuned his guitar before the concert began.",
        "She hummed a cheerful tune while she washed the dishes."
      ]
    }
  }
}

Short forms are accepted too: { "abandon": ["sentence"] } or { "abandon": "sentence" }. Sentences are matched by the first table column after stripping ==highlight==, <br>, and parenthetical notes.

Default schedule

Review targets are Day 1, 2, 3, 7, 14, 30. Default gaps are 1,1,4,7,16 days after stages 1–5. Default grace windows are 0,0,0,1,1,2 days for Day 1, 2, 3, 7, 14 and 30.

Installation

Copy manifest.json, main.js and styles.css into:

<vault>/.obsidian/plugins/word-table-sync/

Then enable Word Table Sync under Settings → Community plugins.

Settings

Setting Description
原始单词表 Markdown file holding the vocabulary table
单词查看 Plain-text list read by mobile widgets; the source table is embedded below it
已背诵单词表 Archive table for mastered words
状态文件 JSON state (UUID, dates, stage); kept inside the plugin folder by default
例句库 JSON sentence library (see above)
纯文本分隔符 Separator used between words in 单词查看
复习间隔 / 宽限天数 Schedule configuration
单词查看删词=打卡 Deleting a word in 单词查看 counts as one review (6/6 words are archived instead)

License

MIT