掌上百科 - PDAWIKI

 找回密码
 免费注册

QQ登录

只需一步,快速开始

查看: 6961|回复: 93

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

[复制链接]

该用户从未签到

发表于 2016-6-30 01:29:23 | 显示全部楼层 |阅读模式
本帖最后由 asicsfree 于 2016-11-2 18:56 编辑 : M7 w# E+ {" }* n* i
. m8 u% b5 T0 F2 `$ r
go get the lastest version of PatchO8C at https://www.pdawiki.com/forum/fo ... &extra=page%3D16 E! I. p5 u% b; C, W, D

2 }: a! j) _8 i8 EPatchO8C can extract MDX/MDD. It is a by-product of my work, for Windows only.
3 Q- O* K+ K6 eAlthough the code is not reviewed yet, I still hope it could be helpful to you fellows.: G7 O% R- q4 h+ p( `3 d
PatchO8C particularly has the following features:
* H5 M8 b% k9 K' G% m
1 Z" ?- z* L- g- G1 z* t
  • solve the problem of Windows reserved file names.  (regular expression: (r"^(PRN|AUX|NUL|CON|COM[1-9]|LPT[1-9])$", re.IGNORECASE)
  • preserve the folder hierarchy of mdd
  • save the description of mdx
  • designate the encoding of mdx+ }/ J1 R; f, F/ W! d! j; j
6 @1 t* R; F- z- K

6 Q; J& [% y1 R# X( NFeedback is appreciated. 9 E% h5 P: C) W4 ]1 @( T, h. U

" h0 |/ w9 q" {3 t8 Z9 M) ^9 l/ Z1.0.7 New: Word list supports regular expression. (regex is case sensitive; plaintext is not case sensitive)  x5 m2 l( i* R" {
1.0.6 Fix: Regular expressions, empty string./ o3 b* C: E' |% h5 e; Q+ C6 y& c: N
1.0.4 Fix: Regular expressions, save function.6 B3 v- ?4 Q0 Q8 ^% V
1.0.3 New: Add patch feature.9 X% `0 A4 x+ [, n$ k% A) F
1.0.2 Fix: Improve stability. In testing phase. See explanation
4 D6 L4 b, [( Z; {: F9 q, F1.0.1 Fix: Save settings before quit.
0 N) W" L; a8 j7 |# J1 ?% K: ]) p
+ |- g  b$ _0 T5 h6 D3 d# Z9 C- p; y) y5 I! k

$ e- Y  g) m! P( I1 s5 t链接: http://pan.baidu.com/s/1c1Tiun2 密码: gmsu
( c4 Q" K$ y, h/ ?/ Z; A% f" a; A0 h6 z" k

本帖子中包含更多资源

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

x

该用户从未签到

发表于 2016-7-1 07:22:34 | 显示全部楼层
測出來了, 一個很簡單的內容, 就會crash, 如附件: J$ U- A; C+ }3 g* p9 c. Q% n
$ B) i+ V. X/ S) E, h- ~9 C
  1. test
    9 r% {+ W- c7 b/ d

  2. 4 Q: f  S1 u) R, P( l. p
  3. </>
复制代码

$ |' {; E; ]7 B( g: L' R4 ]# _. S: t! U* k: {0 X

本帖子中包含更多资源

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

x

点评

幸苦了。我有空儘快來看看。  发表于 2016-7-1 07:59
В  发表于 2016-7-1 07:54

该用户从未签到

发表于 2016-7-1 01:18:48 | 显示全部楼层
反應一下問題, 某些mdx無法解開,
7 R: T! H2 a/ r+ z3 w1 W& D例如& v9 W' [$ g/ {3 N0 W' ]# l( P
http://www.octopus-studio.com/download.cn.htm
/ Y/ r  b  D5 |# w2 p, A底下的ETDict 以及 CC-CEDict, 要解開時, 會出現File format not recognized.+ F9 l  ^7 J6 Q( [1 C+ b+ S

7 T' h9 C. u5 C另外, 以前人所製作的 "21世紀英漢漢英" 幾個版本mdx5 c/ B/ H0 F; V! q& @" U9 B; f. q
有些可以解開, 有些也會出現File format not recognized.7 K- L5 W6 n' {  Z7 Z
還有一個版本, 則會讓程式直接crash, 跳回windows.

该用户从未签到

发表于 2016-8-5 19:33:24 | 显示全部楼层
本帖最后由 Slav 于 2016-8-5 20:39 编辑
  r8 l" Q% ?- e$ U5 C; v  w! _9 u* X! J& A9 _1 I# [6 J
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.
' O- y0 }  ~6 U' Y( `/ g, f4 R& q* G* z9 j  F6 \
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.
& f0 h8 x0 i0 U0 W1 C+ ~2 oYou 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.
  d9 i4 H" A+ x+ w% UYour 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.
* L2 i) v) j. m! nAs for me MDX is not necessary feature, I just need simple dictionaries w\o any multimedia files. But these are my needs only.
3 Y/ y: l# @: L- V: |, q
0 o4 y: M' O% S: V# eThe 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. : v% B8 ~9 s( I% I: r
3 D8 }. D0 ?2 R3 j$ |4 v; c$ _8 ^
# X0 n7 O$ G) e# H: @& @6 |

该用户从未签到

发表于 2016-6-30 02:41:31 | 显示全部楼层
新的软件 支持
  • TA的每日心情
    慵懒
    2023-1-18 13:13
  • 签到天数: 539 天

    [LV.9]以坛为家II

    发表于 2016-6-30 10:34:40 | 显示全部楼层
    谢谢楼主。
    8 n4 ~  S$ p* }+ ~我最希望出现的是可以该词典title属性或者清空titile属性的软件。有很多词典的标题不是想要的标题,更喜欢显示文件名作为标题。

    点评

    Good idea. But I think everyone should always use MdxBuilder to convert dictionaries to ensure the consistency of all dictionaries. I don't want to break the rule.  发表于 2016-6-30 14:41

    该用户从未签到

    发表于 2016-6-30 10:46:28 | 显示全部楼层
    看看隐藏内容。

    该用户从未签到

    发表于 2016-6-30 12:29:54 | 显示全部楼层
    这是个导出MDX内容的工具吗?

    该用户从未签到

    发表于 2016-6-30 12:35:05 | 显示全部楼层
    用不成,main.exe杀软件查出有木马,不干净呀

    点评

    It doesn't even have the ability to access the network. It's clean. Try bypass it.  发表于 2016-6-30 13:18

    该用户从未签到

    发表于 2016-6-30 13:05:34 来自手机 | 显示全部楼层
    本帖最后由 qiuhao1112 于 2016-6-30 13:07 编辑
    , N. ^+ U% h& U$ ?$ O) Y1 H- J
    4 A1 Y+ m% n( J3 K: L/ A对这个个性化功能的软件很感兴趣   请教楼主,这个软件是用Python代码写的吗?使用什么软件来封装成这种友好型交互式界面呢?

    点评

    Search cx_freeze, py2exe, Py2app, PyInstaller, Nuitka ......  发表于 2016-6-30 13:20

    该用户从未签到

    发表于 2016-6-30 13:14:50 来自手机 | 显示全部楼层
    谢谢楼主分享!
  • TA的每日心情
    奋斗
    2019-11-16 20:51
  • 签到天数: 178 天

    [LV.7]常住居民III

    发表于 2016-6-30 13:15:04 来自手机 | 显示全部楼层
    谢谢楼主无私奉献!

    该用户从未签到

    发表于 2016-6-30 13:37:11 来自手机 | 显示全部楼层
    再劳烦一下楼主,请问,您分享的这个程序压缩包大小有18M,那您写的Python文本代码有多大呢?纯Python代码不会有好几M吧,那样的话太恐怖了

    点评

    ...Yes, you are right.  发表于 2016-6-30 14:08
    You are right. I pack all the libraries needed in one folder to avoid trouble. But the footprint is still huge for such a small tool .Giving Python script a GUI and packing it does pay the price.  发表于 2016-6-30 14:08
  • TA的每日心情

    2018-6-16 00:08
  • 签到天数: 197 天

    [LV.7]常住居民III

    发表于 2016-6-30 14:09:24 | 显示全部楼层
    感谢大神,很久不见??
  • TA的每日心情
    擦汗
    2021-4-3 16:28
  • 签到天数: 505 天

    [LV.9]以坛为家II

    发表于 2016-6-30 14:23:24 来自手机 | 显示全部楼层
    向楼主学学
  • TA的每日心情
    开心
    2019-5-18 14:33
  • 签到天数: 12 天

    [LV.3]偶尔看看II

    发表于 2016-6-30 16:07:51 | 显示全部楼层
    thank you very much.
  • TA的每日心情
    开心
    2018-1-27 00:16
  • 签到天数: 1 天

    [LV.1]初来乍到

    发表于 2016-6-30 19:52:37 来自手机 | 显示全部楼层
    感谢大神开发这么优秀的软体!
  • TA的每日心情
    开心
    2018-1-27 00:16
  • 签到天数: 1 天

    [LV.1]初来乍到

    发表于 2016-6-30 19:53:30 来自手机 | 显示全部楼层
    感谢大神开发这么优秀的软体!

    该用户从未签到

    发表于 2016-6-30 20:26:33 | 显示全部楼层
    新的工具,感谢创作,辛苦了

    该用户从未签到

    发表于 2016-6-30 21:09:01 | 显示全部楼层
    謝謝樓主製作分享~
    您需要登录后才可以回帖 登录 | 免费注册

    本版积分规则

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

    GMT+8, 2024-4-29 04:35 , Processed in 0.076805 second(s), 11 queries , MemCache On.

    Powered by Discuz! X3.4

    Copyright © 2001-2023, Tencent Cloud.

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