Hi ,Peter!
Thanks a lot for your solution.I will try to transfer it with python.

Zhao Huafei

在 2013年11月13日星期三UTC+8下午3时43分19秒,Peter Bienstman写道:
>
> Hi, 
>
> I really recommend against creating xml manually, otherwise you risk   
> of missing stuff. 
>
> It's better and simpler to use the libmnemosyne API to add a card. See 
> e.g. 
>
>
> http://bazaar.launchpad.net/~peter-bienstman/mnemosyne-proj/trunk/view/head:/mnemosyne/mnemosyne/example_scripts/add_card.py
>  
>
> Alternatively, you can write an importer for YoudaoDict. See as   
> inspiration here: 
>
>
> http://bazaar.launchpad.net/~peter-bienstman/mnemosyne-proj/trunk/view/head:/mnemosyne/mnemosyne/libmnemosyne/file_formats/cuecard_wcu.py
>  
>
> Good luck! 
>
> Peter 
>
> Quoting Huafei Zhao <[email protected] <javascript:>>: 
>
> > *Hello !I really like this software ,so i want to give up my last 
> > one(YoudaoDict from China),I am now learning Japanese and need to 
> remember 
> > a lot of words,I hope this software can help me.To understand how the 
> XML 
> > file  is constructed .I added two words to cards with two tags by 
> hand.Then 
> > exported them with a XML file,like this :* 
> > <xml> 
> > <openSM2sync number_of_entries="9"><log type="10" 
> > o_id="RNO2Ddjb1QcwoBJC4wV6bZ"><name>中文</name></log> 
> > <log type="10" o_id="VrjgHsDPXtYiSKf1wtId3x"><name>英文</name></log> 
> > <log type="10" o_id="bOtypsl1W1MtC0T3x8O3At"><name>日本語</name></log> 
> > <log type="16" 
> > 
> o_id="pYmC8R1KuxdF2Uiax0IMYF"><f>LAOZHAO</f><n>我的名字</n><m_1>老趙</m_1><p_1>zhf</p_1></log>
>  
>
> > <log type="16" 
> > 
> o_id="JMbVJH4Eth040EMMW5MrAb"><f>日本語</f><n>名詞</n><m_1>日語</m_1><p_1>nihongo</p_1></log>
>  
>
> > <log card_t="3" fact_v="3.1" e="2.5" gr="-1" 
> > tags="RNO2Ddjb1QcwoBJC4wV6bZ,VrjgHsDPXtYiSKf1wtId3x" rt_rp_l="0" lps="0" 
> > l_rp="-1" n_rp="-1" ac_rp_l="0" rt_rp="0" ac_rp="0" type="6" 
> > o_id="RngaUJlR31s0OJZ4b7Uz2u" fact="pYmC8R1KuxdF2Uiax0IMYF"></log> 
> > <log card_t="3" fact_v="3.2" e="2.5" gr="-1" 
> > tags="RNO2Ddjb1QcwoBJC4wV6bZ,VrjgHsDPXtYiSKf1wtId3x" rt_rp_l="0" lps="0" 
> > l_rp="-1" n_rp="-1" ac_rp_l="0" rt_rp="0" ac_rp="0" type="6" 
> > o_id="aGeEVoFKPR1ayrEqPFrJvb" fact="pYmC8R1KuxdF2Uiax0IMYF"></log> 
> > <log card_t="3" fact_v="3.1" e="2.5" gr="-1" 
> tags="bOtypsl1W1MtC0T3x8O3At" 
> > rt_rp_l="0" lps="0" l_rp="-1" n_rp="-1" ac_rp_l="0" rt_rp="0" ac_rp="0" 
> > type="6" o_id="5lhOCMBJNYganauXwY7wCz" 
> fact="JMbVJH4Eth040EMMW5MrAb"></log> 
> > <log card_t="3" fact_v="3.2" e="2.5" gr="-1" 
> tags="bOtypsl1W1MtC0T3x8O3At" 
> > rt_rp_l="0" lps="0" l_rp="-1" n_rp="-1" ac_rp_l="0" rt_rp="0" ac_rp="0" 
> > type="6" o_id="AP5ER7purjA77DaeDydkZS" 
> fact="JMbVJH4Eth040EMMW5MrAb"></log> 
> > </openSM2sync> 
> > </code> 
> > *but i cann't understand what the <log card_t="" ...>...</log> means.now 
> I 
> > want to generate a XML file with my own XML file by java or other 
> language 
> > .* 
> > *Below is my XML file,and i think this type of file may more userful and 
> > need less space,* 
> > <xml> 
> > <?xml version="1.0" encoding="utf-8"?> 
> > 
> > <wordbook> 
> >   <item> 
> >     <word>日本人</word> 
> >     <trans>日本人 [词性:名词]</trans> 
> >     <phonetic>にほんじん |(声调:)</phonetic> 
> >     <tags>标日初级</tags> 
> >     <progress>6</progress> 
> >   </item> 
> >   <item> 
> >     <word>韓国人</word> 
> >     <trans>韩国人 [词性:名词]</trans> 
> >     <phonetic>かんこくじん |(声调:)</phonetic> 
> >     <tags>标日初级</tags> 
> >     <progress>6</progress> 
> >   </item> 
> > </wordbook> 
> > 
> > <xml> 
> > </code> 
> > 
> > *If you know what the above means ,please tell me or help me transfer 
> > it.The attachment file is what i want to transfer. Thanks a lot!* 
> > 
> > -- 
> > You received this message because you are subscribed to the Google   
> > Groups "mnemosyne-proj-users" group. 
> > To unsubscribe from this group and stop receiving emails from it,   
> > send an email to 
> > [email protected]<javascript:>. 
>
> > To post to this group, send email to 
> > [email protected]<javascript:>. 
>
> > To view this discussion on the web visit   
> > 
> https://groups.google.com/d/msgid/mnemosyne-proj-users/c102039f-bfa3-4426-b164-83bbf3a6d091%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/groups/opt_out. 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mnemosyne-proj-users/92e71052-51a7-410e-a87e-fcef6b9ab1b2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to