掌上百科 - PDAWIKI

 找回密码
 免费注册

QQ登录

只需一步,快速开始

楼主: asicsfree

[工具] [PatchO8C 1.0.7] Extract MDX/MDD

[复制链接]

该用户从未签到

发表于 2016-8-5 16:19:32 | 显示全部楼层
Fixed it in version 1.0.4. You can try it now.

2 @9 ^+ H8 |- d! XConfirmed. Thanks.
; b0 U( f! [( g% H' j8 n- T' P+ K5 A) u1 l5 x6 n. K
BTW, how can I use escape sequences in the regex box? Are there any flags available?+ M& A* R! C! t4 M4 z9 P3 v. m
Do you have any plans to include the feature of making MDX\MDD files based on the text file (or Excel) + regex features. This would speed up a dictionary making process much, i suppose.
) O3 m- h8 s2 f" z8 {  W3 {  {: a5 r' @" C1 K: m% }* c
Thank you for the time!$ T7 r# u( ^# C% d! u9 R0 q: x

点评

please redownload 1.0.4. mdd capability fails. sorry for the inconvenience.  发表于 2016-8-5 19:26

该用户从未签到

 楼主| 发表于 2016-8-5 17:02:15 | 显示全部楼层
本帖最后由 asicsfree 于 2016-8-5 17:29 编辑
8 L% B/ Y2 H) }
Slav 发表于 2016-8-5 16:19
, i7 Z/ }0 K. F9 M5 F( d; s1 s0 C* [Confirmed. Thanks., H0 f. f' ~2 ?, c6 |0 w/ Q
' s0 Y' S0 p7 _( X" m4 [+ w
BTW, how can I use escape sequences in the regex box? Are there any flags av ...
% g, b9 G# n5 r1 {3 R

3 g% J/ ?1 }( A9 U/ L$ u- x. rTHEORATICALLY, it supports what Python supports.
$ v- U7 U) @  H6 k8 \4 n9 _about the pattern/string, you can check pattern/string
- x2 V0 z2 ^+ U* K6 b% \# kabout the flags, you  can check flags2 I1 Q& i5 a# [$ k6 J' o$ X7 m
And to be honest, the only regex I've ever tested is this If you encounter any problem, let me know.
: x- r! a: }" E( c- m' r8 P+ r
6 b! X* a! _1 R5 wI was thinking about letting PatchO8C call external MdxBuilder.exe to make the mdx after patching. It is quite easy actually. I just lack passion for doing it. Since you bring it up, I might have the motive for doing it. As of mdd, because it usually contains pictures, sounds, I don't see any need to patch it and to convert it back. Do you have any chance of doing it?. k0 l; O1 ~1 J2 s7 p4 s
  B$ @* e" f) L
" making MDX\MDD files based on the text file (or Excel) + regex features", I think you are talking about something else. Let me digest it first.

该用户从未签到

发表于 2016-8-5 19:33:24 | 显示全部楼层
本帖最后由 Slav 于 2016-8-5 20:39 编辑 0 L/ F4 R+ Z; a9 |& {

0 [  i- ?# B" ?2 j) W$ \Just started to dive into the regex expressions field since it is really a good idea to parse MDX source. Will check it out later on.) K" p; d# f. N& K" [: F  Y; Q' B
( j" Y0 h8 ~% n
The idea about creating MDX from TXT is following. The following thoughts are just my fantasy, but I believe it can be released in this software. / C! @( H8 Z/ N! W
You define the structure of TXT file, where a user have some fields (words, transcriptions, definitions, examples, etc). When this user starts your application, the only he need to do is to link these fields from TXT to customized fields in your program (words to words, transcriptions to transcriptions, etc). This is because user can have limited set of fields in his dictionary. Like me, I need to have only 4 fields, such as words, definitions, transcriptions, and part of speech. But other people could have examples for each part of speech or more complicated structure.
- \: u" K- W3 h8 D, u2 m% P1 HYour applications just parses TXT file to the program database, keeping in mind these links. The next step, based on the general logic of MDX source file to create a simple MDX (with help of MdxBuilder, for example). Style creation is also can be embedded to the applications using the same logic of linking users fields to program ones.4 ~' |  w* F% W* n# ]
As for me MDX is not necessary feature, I just need simple dictionaries w\o any multimedia files. But these are my needs only.' d6 ]0 k; Q3 b/ X; h' H, f

2 ?0 z, l2 ~& J8 K! [The same can be done when this application parses MDX to MDX source or text file. User could define which fields from MDX he need, what is the purpose of each field and get a final TXT or Excel file for the further processing. 1 N5 A& G  f2 C0 ^/ {, I' y& d
" V- i% O" T0 K8 I
; i, \" ^' a* Q6 ]4 A1 A

该用户从未签到

发表于 2016-8-6 00:49:13 | 显示全部楼层
And to be honest, the only regex I've ever tested is this If you encounter any problem, let me know.

: m7 |0 p7 @6 B8 k+ w7 G3 n- Q7 r6 ?+ G0 I/ X% W; W
Your advice is needed on how to perform the pattern ((.*?)\n(.*?)\n</>\n) to ((.*?)(.*?)</>). Its look like the escape sequence  '\n' is not handled correctly by the application. There are no changes after the patch mode completes.

该用户从未签到

 楼主| 发表于 2016-8-6 01:20:09 | 显示全部楼层
本帖最后由 asicsfree 于 2016-8-7 00:43 编辑
5 E1 e; N( ]+ V. }5 I2 h2 m- ?* u
Slav 发表于 2016-8-6 00:49' E  e% F" f5 [
Your advice is needed on how to perform the pattern ((.*?)\n(.*?)\n\n) to ((.*?)(.*?)). Its look ...

4 x7 s7 ^0 Q  t4 u
8 N! D* N3 B& Y! ^" ^Would you kindly give me a example, a very short example.
: |" S. o/ `8 e+ G$ N5 [" w4 Y& K! e1 \# a, y
(^[^\n]+)\n(.+)\n</>$,,\1\2

该用户从未签到

发表于 2016-8-6 01:27:04 | 显示全部楼层
As an example we can use the following card. Please find it enclosed.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?免费注册

x

该用户从未签到

发表于 2016-8-6 01:42:56 | 显示全部楼层
本帖最后由 Slav 于 2016-8-6 01:46 编辑 / p% C7 x# a4 o
% }7 G$ J$ b/ f. I. x8 N
Getting back to the idea I described, let me explain what my task is. I want to merge all dictionaries I need into a single one. But the only a limited set of fields I need. Thus the resulted file will be significantly reduced in terms of size.# O# m- ~" d9 ~- D
I employ yr application in order to remove any unnecessary for me information from a dictionary, with help of the regex patch mode. The main reason for it is the fact that application does it quite fast compared to specialized software. As an outcome I am able to get cleaned text file which easy can be transformed to xml formal. The xml file can be proceeded in Excel, where I can also make merge with another dictionary and than save a resulting xml file. Next step is to transform it to the MDX source format and finally pack it to the native MDX one.
7 J6 l4 j  S$ UThat's my idea, since I am not happy anymore to have similar definitions for each word.

该用户从未签到

 楼主| 发表于 2016-8-6 08:46:06 | 显示全部楼层
Slav 发表于 2016-8-6 01:27& O* x' X6 W) Z% ?+ Q0 _$ X9 d
As an example we can use the following card. Please find it enclosed.
/ Q) G- r  u2 T3 B- p1 W
OK. Now I understand what you are trying to do here. I'll 'fix' it later.

该用户从未签到

发表于 2016-8-6 18:40:53 | 显示全部楼层
多谢制作,试下这个软件$ ?7 n: K9 l1 o. |. _( _

该用户从未签到

 楼主| 发表于 2016-8-7 00:52:13 | 显示全部楼层
本帖最后由 asicsfree 于 2016-11-8 20:59 编辑 7 C  H  S- [2 t( C- C* b4 V
Slav 发表于 2016-8-6 00:49
& @5 q" C+ h% ~' C3 j6 _6 AYour advice is needed on how to perform the pattern ((.*?)\n(.*?)\n\n) to ((.*?)(.*?)). Its look ...

5 I: K  @/ O- Q% L. N$ ^6 p
+ n" y+ C0 o# @3 |& yuse version 1.0.5/ o, x, |3 C( Q( }
paste from csv: (^[^\n]+)\n(.+)\n(</>)$,,\1\2\3/ E. b- L) u! X6 |0 Z

# E4 r* h/ P3 b0 h" l- M. X9 C1 J
4 x% H  ?  i7 E; ?  S4 `8 K
- H4 _7 T( X- D0 w
" R! N; H9 W  l* [2 b^(.+?)\n(.+\n)*</>\n4 d; b) o! @5 b0 U+ T
  • TA的每日心情
    开心
    2022-11-10 09:48
  • 签到天数: 466 天

    [LV.9]以坛为家II

    发表于 2016-8-7 06:47:36 | 显示全部楼层
    谢谢asicsfree!

    该用户从未签到

    发表于 2016-8-7 07:46:44 | 显示全部楼层
    本帖最后由 Slav 于 2016-8-7 07:48 编辑 5 p7 [1 T1 m2 H0 q  t7 R. J# U
    use version 1.0.53 {" D" E: e4 L& p. Z& O4 Q+ O8 t- E- o8 {
    paste from csv: (^[^\n]+)\n(.+)\n(</>)$,,\1\2\33 h+
    ; a" Q" K. ^& C4 F' M0 j; Y
    # Q% T; w9 e5 N4 [
    Great, just a fantastic tool you created. Works like a charm. Thank you, man
  • TA的每日心情
    难过
    2024-5-6 14:10
  • 签到天数: 13 天

    [LV.3]偶尔看看II

    发表于 2016-8-8 10:42:03 | 显示全部楼层
    非常感谢asicsfree兄制作分享~~

    该用户从未签到

    发表于 2016-10-13 20:33:22 | 显示全部楼层
    非常感谢楼主的贡献!

    该用户从未签到

    发表于 2016-10-21 17:26:20 | 显示全部楼层
    帖隐藏内容请回复

    该用户从未签到

    发表于 2016-10-25 05:34:54 | 显示全部楼层
    还没听说过这个软件,试试

    该用户从未签到

    发表于 2016-10-27 11:06:36 | 显示全部楼层
    thank you very much.

    该用户从未签到

    发表于 2016-11-2 18:26:23 | 显示全部楼层
    sky66 发表于 2016-7-1 07:22
    / K& `2 ?( k; M! g9 g測出來了, 一個很簡單的內容, 就會crash, 如附件
    & U, Z$ n4 j6 |$ ~; j( P/ x; z9 J
    thanks man
  • TA的每日心情

    2021-11-16 21:00
  • 签到天数: 119 天

    [LV.6]常住居民II

    发表于 2016-11-2 20:57:40 | 显示全部楼层
    下来看看,谢谢楼主的软件.

    该用户从未签到

    发表于 2016-11-3 06:12:02 | 显示全部楼层
    谢谢楼主分享!

    该用户从未签到

    发表于 2016-11-4 01:34:31 | 显示全部楼层
    Thank you my frienddddddddddddddddddddd

    该用户从未签到

    发表于 2016-11-10 22:22:13 | 显示全部楼层
    O(∩_∩)O谢谢
    您需要登录后才可以回帖 登录 | 免费注册

    本版积分规则

    小黑屋|手机版|Archiver|PDAWIKI |网站地图

    GMT+8, 2025-7-9 11:34 , Processed in 0.024444 second(s), 21 queries .

    Powered by Discuz! X3.4

    © 2001-2023 Discuz! Team.

    快速回复 返回顶部 返回列表