KantanManga icon indicating copy to clipboard operation
KantanManga copied to clipboard

Try to use J.DepP

Open juanj opened this issue 5 years ago • 2 comments

Try to use J.DepP to generate 文節 form the MeCab output. J.DepP is written in C++, need to find a way to compile it to iOS. Maybe Objectiv-C++?

juanj avatar Oct 18 '20 20:10 juanj

After looking more into this, it seems a little more complicated. Because J.DepP uses automake it needs to be configured before building. I think the general idea will be something like this:

  1. Configure and compile J.DepP for iOS. (some resources: makefile of libtesseract, article describing how to configure automake for iOS, another automake for iOS article).
  2. Because J.DepP is a command line tool, I'm not sure if I need to create an interface that exports the core funcionality.
  3. Create a wrapper on Objective-C or C to be able to import from Swift

juanj avatar Nov 25 '20 21:11 juanj

Relevant: https://github.com/apple/swift/blob/main/docs/CppInteroperability/CppInteroperabilityManifesto.md

juanj avatar Apr 24 '22 21:04 juanj