Jump to content
Chinese-forums.com
Learn Chinese in China

  • Why you should look around

    Since 2003, Chinese-forums.com has been helping people learn Chinese faster and get to China sooner. Our members can recommend beginner textbooks, help you out with obscure classical vocabulary, and tell you where to get the best street food in Xi'an. And we're friendly about it too. 

    Have a look at what's going on, or search for something specific. We hope you'll join us. 
skishore

Inkstone: my free, open-source Chinese writing app

Recommended Posts

furiop
6 hours ago, xinoxanu said:

Here you go

If possible some line of original txt file, attached, so we can look at real format, thank you.

 

WARNING!

IT IS NECESSARY TO DELETE BLANK LINES AT THE END OF THE FILE

test.txt

  • Like 1

Share this post


Link to post
Share on other sites
Site Sponsors:
Pleco for iPhone / Android iPhone & Android Chinese dictionary: camera & hand- writing input, flashcards, audio.
Study Chinese in Kunming 1-1 classes, qualified teachers and unique teaching methods in the Spring City.
Learn Chinese Characters Learn 2289 Chinese Characters in 90 Days with a Unique Flash Card System.
Hacking Chinese Tips and strategies for how to learn Chinese more efficiently
Popup Chinese Translator Understand Chinese inside any Windows application, website or PDF.
Chinese Grammar Wiki All Chinese grammar, organised by level, all in one place.

xinoxanu
3 hours ago, furiop said:

If possible some line of original txt file, attached, so we can look at real format, thank you.

 

This is the original file. I've noticed there's an empty blank line at the end, so I tried deleting it but the error keeps appearing. 

 

The error btw, indicates there's a row that has been malformatted, but doesn't give more info.

flash-1905232047.txt

Share this post


Link to post
Share on other sites
艾墨本

@imron Can the Inkstone bit be moved into the inkstone thread?

  • Like 1
  • Helpful 1

Share this post


Link to post
Share on other sites
furiop

Answer to

https://www.chinese-forums.com/forums/topic/51989-a-short-list-of-resources-for-studying-chinese/?do=findComment&comment=453876

Dear xinoxanu x,

As Mikelove said, the format is: Simpl|TAB|Trad|TAB|Numb.Pinyin|TAB|definition

So, from Pleco file, find-and-replace every "[" into a tab and every "]" into nothing.


Example

成群[成群]    cheng2qun2    1 in groups 2 large numbers of 3 grouping

is changed in

成群    成群    cheng2qun2    1 in groups 2 large numbers of 3 grouping

 

Tab+definition is compulsive, so

街角[街角]    jie1jiao3     (no tab+definition)

is changed in

街角    街角    jie1jiao3    definition

 

delete last blank line 109

 

Furio

  • Thanks 1

Share this post


Link to post
Share on other sites
imron
10 hours ago, 艾墨本 said:

Can the Inkstone bit be moved into the inkstone thread?

Done.  For future reference, it's usually better to hit 'Report Post' rather than @ing a specific admin user, as then anyone on the admin team can fix the problem.

  • Like 2
  • Helpful 1

Share this post


Link to post
Share on other sites
xinoxanu

Hi! 

 

Thanks for the help but I'm not sure how to do this automatically:

 

7 hours ago, furiop said:

 

街 [ot角]    jie1jiao3     (no tab+definition)

 

is changed in

 

街角    街角    jie1jiao3    definition

 

Do I need to manually input "definition" when there's none?

 

Thanks again!

Share this post


Link to post
Share on other sites
furiop
3 hours ago, xinoxanu said:

Do I need to manually input "definition" when there's none?

 

In Pleco export it is possible to put a definition if not present in flascards. Pleco original definition is too long for me, so I'm using the CC-CEDICT dictionary for short definitions (HERE a 2013 version).

I change "[" and "]"  with "Tab" and "Nothing" using a simple text editor (usually I use Notepad++, but any editor with global serch&replace feature works  well).

I use editore for deleting last blank lines too.

 

  • Thanks 1

Share this post


Link to post
Share on other sites
Publius
5 hours ago, xinoxanu said:

Do I need to manually input "definition" when there's none?

No, you don't.

Step 1: Open your .txt file in Notepad++; press "Ctrl + H".

Step 2: In the dialog box, change "Search Mode" from "Normal" to "Regular expression".

Step 3: In the field "Find what", type "\[(.+?)\]\t" (without quotation marks); in the field "Replace with", type "\t\1\t" (without quotation marks); click "Replace All".

Step 4: In the field "Find what", type "^([^\t]+\t[^\t]+\t[^\t]+)$" (without quotation marks); in the field "Replace with", type "\1\tNO DEF" (without quotation marks); click "Replace All".

Step 5: Change "Search Mode" back to "Normal"; click "Close".

Step 6: Go to menu: Edit > Line Operations > Remove Empty Lines.

Step 7: Save your file. Done.

  • Thanks 2
  • Helpful 1

Share this post


Link to post
Share on other sites
xinoxanu

Thank you both! It's finally working :) 

  • Like 1

Share this post


Link to post
Share on other sites
kanumo

Hey everyone, I am new to this Forum and would like to post my first Question right away :-)

I am using an iPhone in Germany. and the link for the inkstone app does not work here. There seems to be another app in the appstore with this Name, but different Content.

I couldn´t find the answer in the Forum yet, therefore I post it here. If it has been answered before, please let me know.

 

BTW: I would like to introduce myself with a few words. Is there a certain area i should do so?

 

Thanks,

 

Dimi

Share this post


Link to post
Share on other sites
Shelley

Hello and welcome to the forum.

 

There is a topic "Why Chinese"  here https://www.chinese-forums.com/forums/topic/43982-why-chinese/?tab=comments#comment-328363

 

This is good place to share why you learn Chinese and a bit about yourself.

 

Or you could just start a new topic - Maybe something like - Hello, I am Dimi. 

There you could introduce yourself.

I hope this helps. This is a very friendly forum, enjoy :)

Share this post


Link to post
Share on other sites
kanumo

Hey Shelley, thanks a a lot. I had posted it here: 

 

The Introduce Yourself Topic

By Tsunku, October 1, 2003 in General Un-China Related Discussion

 

hope ppl see it there as well 😁

Share this post


Link to post
Share on other sites
大块头
17 hours ago, kanumo said:

I am using an iPhone in Germany. and the link for the inkstone app does not work here. There seems to be another app in the appstore with this Name, but different Content.

I couldn´t find the answer in the Forum yet, therefore I post it here. If it has been answered before, please let me know.

 

I just searched in the US App Store, and I didn't see it either.

 

It has been almost a year since the author updated the app or responded to any of the issues on the GitHub repo... I think he may have moved on to other projects. I would not be surprised if Apple takes your apps off its store if you don't pay some sort of yearly registration fee. That may be the reason we can't find his app there anymore.

 

The Android version is unaffected, and in any case you could always download an .apk from the GitHub repo if it disappeared from the Google Play store. I don't believe you have that option if you're using an iPhone unless you jailbreak it first...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Click here to reply. Select text to quote.

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...