掌上百科 - 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.

: \6 S3 z# E4 D/ n* ?/ sConfirmed. Thanks.
; |% c, }2 g6 d, z) _
6 h; m. r) T% B- ~' K! [BTW, how can I use escape sequences in the regex box? Are there any flags available?
* O6 H3 I! n9 \* `9 H* i; {1 MDo 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.) {- o9 Q2 ]1 S9 [1 H

3 r  g0 C, l1 H" Y4 ]# WThank you for the time!
5 g" ?, y3 @" V1 e

点评

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 编辑
  P4 _# l. X$ e0 ~3 L* u1 g
Slav 发表于 2016-8-5 16:19
/ X; c1 F& b, n! H+ @: R) ]Confirmed. Thanks.; `& H% p* i2 I* F* p) e/ ]
  j$ j4 p; A, U' y3 @% F, }
BTW, how can I use escape sequences in the regex box? Are there any flags av ...
" h+ u" U! A$ j/ @. X6 i
7 Q, c6 Q: c+ |& u
THEORATICALLY, it supports what Python supports.
% u+ [* c3 o& }2 B: ?& t$ Qabout the pattern/string, you can check pattern/string
4 V6 C, J! N: w3 rabout the flags, you  can check flags7 n7 f4 @4 D, ]  w, M
And to be honest, the only regex I've ever tested is this If you encounter any problem, let me know., U- G- a' i0 t2 [7 k1 K9 n5 r- }  p

* ^5 W. }2 \* O* T9 X4 AI 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?2 z" r& P! E& F: g+ t5 m# S9 \; g

( c& f7 b. {( I+ h5 n: V+ P/ z" 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 编辑 ( b. g, c* F1 @! m9 H
7 ~5 i" |1 K( l6 }, F5 F
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.
0 x. A4 q* s+ U! }7 M& Y7 @1 q3 l! V- `  N% ]" [, w. ?4 `7 Y. z4 x: l
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.
8 v( t  k- O2 U# |2 jYou 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.
! Y# G+ ~2 ^/ `+ x2 ^: pYour 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.
  H6 a5 k+ J* Q: c! i& u. BAs for me MDX is not necessary feature, I just need simple dictionaries w\o any multimedia files. But these are my needs only.: U4 E0 J/ H: h6 ~1 n1 L6 s
1 j9 J9 J9 |! U, O& D  s0 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.
, T& n: r3 U$ W* r
0 G3 i8 s% {; J( A" M7 P$ K! z
! f  c9 O; c5 `7 i1 m4 [/ o/ C  P, W

该用户从未签到

发表于 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.

/ S& Q/ H9 I6 h' P4 G/ D. X
0 t3 w1 i4 ~' g5 gYour 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 编辑 , j, N0 o4 |: e/ N7 ^
Slav 发表于 2016-8-6 00:49" d) V- x& p/ W# H( v# a& T+ n
Your advice is needed on how to perform the pattern ((.*?)\n(.*?)\n\n) to ((.*?)(.*?)). Its look ...

5 V/ f+ \. _2 Z0 ^" z
! K! [, W5 `. g, g0 {  kWould you kindly give me a example, a very short example.% d3 k2 K* d7 R1 x: Z: E# R( |
8 o( }: b. y: J3 m& j) g/ j
(^[^\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 编辑 $ `0 H7 Q4 l) T5 D- ^

3 j1 @& G+ k1 G3 z# u# M7 NGetting 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.. ?4 l0 w$ @: L; |
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.1 J: K% k: q6 f, s
That'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! f) N/ G3 a9 Z1 h( i3 ^3 s
As an example we can use the following card. Please find it enclosed.

- m* d) y+ H$ ~4 e0 ?8 y% LOK. Now I understand what you are trying to do here. I'll 'fix' it later.

该用户从未签到

发表于 2016-8-6 18:40:53 | 显示全部楼层
多谢制作,试下这个软件6 }% z' Q: ^) c$ E1 j' ]; u

该用户从未签到

 楼主| 发表于 2016-8-7 00:52:13 | 显示全部楼层
本帖最后由 asicsfree 于 2016-11-8 20:59 编辑 6 V) R7 Q5 k* }. U" i4 Z
Slav 发表于 2016-8-6 00:496 U# U3 @: H! H: \( J
Your advice is needed on how to perform the pattern ((.*?)\n(.*?)\n\n) to ((.*?)(.*?)). Its look ...
& m& B( ?; J' J0 z4 O" a, Y4 J+ g

0 Z' Q+ e7 L# Z& d; d3 w6 r6 buse version 1.0.5. b6 i, Y( a0 o) {
paste from csv: (^[^\n]+)\n(.+)\n(</>)$,,\1\2\3, W* \: a) q4 z0 v3 }+ Z6 ~: R
. d6 @8 R6 P) k5 @

5 f& ]& ~6 S3 A# w0 {8 B
! e3 s2 f$ D$ v7 {) ?7 g, X3 _1 y* v' \, ]  p; F* W5 h
^(.+?)\n(.+\n)*</>\n1 i& I( v& A0 O, v# K
  • 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 编辑
    : I6 v2 p- T0 O
    use version 1.0.53 {" D" E: e4 L& p. Z& O
    4 A( P# U( V- o, C* Ppaste from csv: (^[^\n]+)\n(.+)\n(</>)$,,\1\2\33 h+

    % l5 f' h4 k, }# I. {' s& m+ b! r
    Great, just a fantastic tool you created. Works like a charm. Thank you, man
  • TA的每日心情
    难过
    3 天前
  • 签到天数: 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
    2 S) m2 z' P) D. `4 L' u2 z" o測出來了, 一個很簡單的內容, 就會crash, 如附件

      L( ~" L. e' r1 e9 Gthanks 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, 2024-5-9 20:17 , Processed in 0.079811 second(s), 10 queries , MemCache On.

    Powered by Discuz! X3.4

    Copyright © 2001-2023, Tencent Cloud.

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