Skip to content

Commit

Permalink
#119: Update translations and documentation (#125)
Browse files Browse the repository at this point in the history
This commit fixes two minor things: translating PY in traditional Cantonese as 漢語拼音 instead of 拼音, and updating the source info in CC-CANTO/CC-CEDICT to be the current release. Documentation and screenshots have been updated accordingly.

Squashed commit of:
* More minor fixes

- Updated version number for CC-CANTO and CC-CEDICT.
- Updated translation for PY in traditional Cantonese.
- Updated screenshot with new translation.

* Update README with more details on capturing screenshots
  • Loading branch information
aaronhktan authored Apr 9, 2023
1 parent 101adf6 commit 9035be3
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 8 deletions.
12 changes: 9 additions & 3 deletions docs/screenshots/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@ To capture a video demonstrating usage of the app (**macOS ONLY**):
- One "Window Capture", with the window set to Jyut Dictionary.
- One "Display Capture", set to a monitor with a white background.
- Under Settings > Video > Canvas Resolution, set the resolution to the same resolution as a screenshot with border shadowing. (In the current image, that would be 1824x1468.)
- Option 2: Use Cleanshot X to capture a video of the Jyut Dictionary screen
- Option 2: Use Cleanshot X to capture a video of the Jyut Dictionary screen.
- Once the video has been captured, use the following command to generate a gif.
- `ffmpeg -ss <start time, minutes:seconds> -t <duration, minutes:seconds> -i <generated video file> -vf "fps=30,scale=<width of video>:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 <output filename>`
- `ffmpeg -ss <start time, minutes:seconds.milliseconds> -t <duration, minutes:seconds.milliseconds> -i <generated video file> -vf "fps=30,scale=<width of video>:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 <output filename>`

To stitch together a GIF using multiple screenshots:
- Run `./scripts/create_gif.sh ./<folder containing pngs labelled 1.png, 2.png, etc> <output_name>.mp4 <output_name>.gif
- Take screenshots using Cleanshot X.
- Set the background to be a single colour, black.
- Do not capture window shadow (press ⌥ while taking the screenshot).
- Screenshot the active window (with Jyut Dictionary as the active window).
- Run `./scripts/create_gif.sh ./<folder containing pngs labelled 1.png, 2.png, etc> <output_name>.mp4 <output_name>.gif`

To create a morphing evolution GIF, use G'MIC with Gimp. Consult [this link](https://graphicdesign.stackexchange.com/questions/155806/how-to-morph-between-two-images-as-an-animation) for more information.
Binary file modified docs/screenshots/mac/search_localization.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/dictionaries/cedict/parse-set.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
objects.SourceTuple(
"CC-CEDICT",
"CC",
"2022-02-07",
"2023-04-08",
"CC-CEDICT is a continuation of the CEDICT project started by Paul Denisowski in 1997 with the aim to provide a complete downloadable Chinese to English dictionary with pronunciation in pinyin for the Chinese characters.",
"This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.",
"https://www.mdbg.net/chinese/dictionary?page=cc-cedict",
"",
"",
"words",
),
objects.SourceTuple(
"CC-CANTO",
Expand All @@ -25,7 +25,7 @@
"This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.",
"http://cantonese.org/download.html",
"",
"",
"words",
),
]

Expand Down
Binary file modified src/jyut-dict/resources/translations/jyutdictionary-yue_Hant.qm
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,7 @@ Hang tight!</source>
<location filename="../../logic/strings/strings.h" line="19"/>
<location filename="../../logic/strings/strings.h" line="135"/>
<source>PY</source>
<translation>拼音</translation>
<translation>漢語拼音</translation>
</message>
<message>
<location filename="../../logic/strings/strings.h" line="20"/>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,7 @@ Hang tight!</source>
<location filename="../../logic/strings/strings.h" line="19"/>
<location filename="../../logic/strings/strings.h" line="135"/>
<source>PY</source>
<translation>拼音</translation>
<translation>漢語拼音</translation>
</message>
<message>
<location filename="../../logic/strings/strings.h" line="20"/>
Expand Down

0 comments on commit 9035be3

Please sign in to comment.