Skip to content

Commit 6a19008

Browse files
committed
#746 - remove fuzzy flags
1 parent feef370 commit 6a19008

File tree

1 file changed

+88
-7
lines changed

1 file changed

+88
-7
lines changed

library/xml.dom.minidom.po

+88-7
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ msgstr ""
1717
"Generated-By: Babel 2.17.0\n"
1818

1919
#: ../../library/xml.dom.minidom.rst:2
20-
#, fuzzy
2120
msgid ":mod:`!xml.dom.minidom` --- Minimal DOM implementation"
22-
msgstr ":mod:`xml.dom.minidom` --- 최소 DOM 구현"
21+
msgstr ":mod:`!xml.dom.minidom` --- 최소 DOM 구현"
2322

2423
#: ../../library/xml.dom.minidom.rst:11
2524
msgid "**Source code:** :source:`Lib/xml/dom/minidom.py`"
@@ -66,6 +65,14 @@ msgid ""
6665
"\n"
6766
"dom3 = parseString('<myxml>Some data<empty/> some more data</myxml>')"
6867
msgstr ""
68+
"from xml.dom.minidom import parse, parseString\n"
69+
"\n"
70+
"dom1 = parse('c:\\\\temp\\\\mydata.xml') # 파일명으로 XML 파일을 구문 분석합니다\n"
71+
"\n"
72+
"datasource = open('c:\\\\temp\\\\mydata.xml')\n"
73+
"dom2 = parse(datasource) # 열린 파일을 구문 분석합니다\n"
74+
"\n"
75+
"dom3 = parseString('<myxml>Some data<empty/> some more data</myxml>')"
6976

7077
#: ../../library/xml.dom.minidom.rst:41
7178
msgid ""
@@ -145,6 +152,14 @@ msgid ""
145152
"text = newdoc.createTextNode('Some textual content.')\n"
146153
"top_element.appendChild(text)"
147154
msgstr ""
155+
"from xml.dom.minidom import getDOMImplementation\n"
156+
"\n"
157+
"impl = getDOMImplementation()\n"
158+
"\n"
159+
"newdoc = impl.createDocument(None, \"some_tag\", None)\n"
160+
"top_element = newdoc.documentElement\n"
161+
"text = newdoc.createTextNode('Some textual content.')\n"
162+
"top_element.appendChild(text)"
148163

149164
#: ../../library/xml.dom.minidom.rst:86
150165
msgid ""
@@ -164,9 +179,10 @@ msgid ""
164179
"dom3 = parseString(\"<myxml>Some data</myxml>\")\n"
165180
"assert dom3.documentElement.tagName == \"myxml\""
166181
msgstr ""
182+
"dom3 = parseString(\"<myxml>Some data</myxml>\")\n"
183+
"assert dom3.documentElement.tagName == \"myxml\""
167184

168185
#: ../../library/xml.dom.minidom.rst:95
169-
#, fuzzy
170186
msgid ""
171187
"When you are finished with a DOM tree, you may optionally call the "
172188
":meth:`unlink` method to encourage early cleanup of the now-unneeded "
@@ -233,6 +249,8 @@ msgid ""
233249
"with xml.dom.minidom.parse(datasource) as dom:\n"
234250
" ... # Work with dom."
235251
msgstr ""
252+
"with xml.dom.minidom.parse(datasource) as dom:\n"
253+
" ... # dom으로 작업합니다."
236254

237255
#: ../../library/xml.dom.minidom.rst:138
238256
msgid ""
@@ -257,7 +275,6 @@ msgstr ""
257275
"지정할 수 있습니다."
258276

259277
#: ../../library/xml.dom.minidom.rst:148
260-
#, fuzzy
261278
msgid ""
262279
"Similarly, explicitly stating the *standalone* argument causes the "
263280
"standalone document declarations to be added to the prologue of the XML "
@@ -266,8 +283,8 @@ msgid ""
266283
"omit the declaration from the document."
267284
msgstr ""
268285
"유사하게, *standalone* 인자를 명시적으로 지정하면 standalone 문서 선언이 XML 문서의 프롤로그에 추가됩니다. "
269-
"값이 `True`\\로 설정되면 `standalone=\"yes\"`\\가 추가되고, 그렇지 않으면 `\"no\"`\\ "
270-
"설정됩니다. 인자를 명시하지 않으면 문서에서 선언을 생략합니다."
286+
"값이 ``True``\\로 설정되면 ``standalone=\"yes\"``\\가 추가되고, 그렇지 않으면 ``\"no\"``\\로"
287+
" 설정됩니다. 인자를 명시하지 않으면 문서에서 선언을 생략합니다."
271288

272289
#: ../../library/xml.dom.minidom.rst:155
273290
msgid ""
@@ -278,7 +295,7 @@ msgstr ":meth:`writexml` 메서드는 이제 사용자가 지정한 어트리뷰
278295
#: ../../library/xml.dom.minidom.rst:159 ../../library/xml.dom.minidom.rst:180
279296
#: ../../library/xml.dom.minidom.rst:199
280297
msgid "The *standalone* parameter was added."
281-
msgstr ""
298+
msgstr "*standalone* 매개 변수를 추가했습니다."
282299

283300
#: ../../library/xml.dom.minidom.rst:164
284301
msgid ""
@@ -408,6 +425,70 @@ msgid ""
408425
"\n"
409426
"handleSlideshow(dom)\n"
410427
msgstr ""
428+
"import xml.dom.minidom\n"
429+
"\n"
430+
"document = \"\"\"\\\n"
431+
"<slideshow>\n"
432+
"<title>Demo slideshow</title>\n"
433+
"<slide><title>Slide title</title>\n"
434+
"<point>This is a demo</point>\n"
435+
"<point>Of a program for processing slides</point>\n"
436+
"</slide>\n"
437+
"\n"
438+
"<slide><title>Another demo slide</title>\n"
439+
"<point>It is important</point>\n"
440+
"<point>To have more than</point>\n"
441+
"<point>one slide</point>\n"
442+
"</slide>\n"
443+
"</slideshow>\n"
444+
"\"\"\"\n"
445+
"\n"
446+
"dom = xml.dom.minidom.parseString(document)\n"
447+
"\n"
448+
"def getText(nodelist):\n"
449+
" rc = []\n"
450+
" for node in nodelist:\n"
451+
" if node.nodeType == node.TEXT_NODE:\n"
452+
" rc.append(node.data)\n"
453+
" return ''.join(rc)\n"
454+
"\n"
455+
"def handleSlideshow(slideshow):\n"
456+
" print(\"<html>\")\n"
457+
" handleSlideshowTitle(slideshow.getElementsByTagName(\"title\")[0])\n"
458+
" slides = slideshow.getElementsByTagName(\"slide\")\n"
459+
" handleToc(slides)\n"
460+
" handleSlides(slides)\n"
461+
" print(\"</html>\")\n"
462+
"\n"
463+
"def handleSlides(slides):\n"
464+
" for slide in slides:\n"
465+
" handleSlide(slide)\n"
466+
"\n"
467+
"def handleSlide(slide):\n"
468+
" handleSlideTitle(slide.getElementsByTagName(\"title\")[0])\n"
469+
" handlePoints(slide.getElementsByTagName(\"point\"))\n"
470+
"\n"
471+
"def handleSlideshowTitle(title):\n"
472+
" print(f\"<title>{getText(title.childNodes)}</title>\")\n"
473+
"\n"
474+
"def handleSlideTitle(title):\n"
475+
" print(f\"<h2>{getText(title.childNodes)}</h2>\")\n"
476+
"\n"
477+
"def handlePoints(points):\n"
478+
" print(\"<ul>\")\n"
479+
" for point in points:\n"
480+
" handlePoint(point)\n"
481+
" print(\"</ul>\")\n"
482+
"\n"
483+
"def handlePoint(point):\n"
484+
" print(f\"<li>{getText(point.childNodes)}</li>\")\n"
485+
"\n"
486+
"def handleToc(slides):\n"
487+
" for slide in slides:\n"
488+
" title = slide.getElementsByTagName(\"title\")[0]\n"
489+
" print(f\"<p>{getText(title.childNodes)}</p>\")\n"
490+
"\n"
491+
"handleSlideshow(dom)\n"
411492

412493
#: ../../library/xml.dom.minidom.rst:216
413494
msgid "minidom and the DOM standard"

0 commit comments

Comments
 (0)