A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

CHANGELOG 6.4 KiB

10 yıl önce
11 yıl önce
11 yıl önce
11 yıl önce
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. v0.4.1 (unreleased):
  2. - The process for building Windows binaries has been fixed, and these should be
  3. distributed along with new releases. Windows users can now take advantage of
  4. C speedups without having a compiler of their own.
  5. - Fixed some bugs in the release scripts.
  6. v0.4 (released May 23, 2015):
  7. - The parser now falls back on pure Python mode if C extensions cannot be
  8. built. This fixes an issue that prevented some Windows users from installing
  9. the parser.
  10. - Added support for parsing wikicode tables (patches by David Winegar).
  11. - Added a script to test for memory leaks in scripts/memtest.py.
  12. - Added a script to do releases in scripts/release.sh.
  13. - skip_style_tags can now be passed to mwparserfromhell.parse() (previously,
  14. only Parser().parse() allowed it).
  15. - The 'recursive' argument to Wikicode's filter methods now accepts a third
  16. option, RECURSE_OTHERS, which recurses over all children except instances of
  17. 'forcetype' (for example, `code.filter_templates(code.RECURSE_OTHERS)`
  18. returns all un-nested templates).
  19. - The parser now understands HTML tag attributes quoted with single quotes.
  20. When setting a tag attribute's value, quotes will be added if necessary. As
  21. part of this, Attribute's 'quoted' attribute has been changed to 'quotes',
  22. and is now either a string or None.
  23. - Calling Template.remove() with a Parameter object that is not part of the
  24. template now raises ValueError instead of doing nothing.
  25. - Parameters with non-integer keys can no longer be created with
  26. 'showkey=False', nor have the value of this attribute be set to False later.
  27. - _ListProxy.destroy() has been changed to _ListProxy.detach(), and now works
  28. in a more useful way.
  29. - If something goes wrong while parsing, ParserError will now be raised.
  30. Previously, the parser would produce an unclear BadRoute exception or allow
  31. an incorrect node tree to be build.
  32. - Fixed parser bugs involving:
  33. - nested tags;
  34. - comments in template names;
  35. - tags inside of <nowiki> tags.
  36. - Added tests to ensure that parsed trees convert back to wikicode without
  37. unintentional modifications.
  38. - Added support for a NOWEB environment variable, which disables a unit test
  39. that makes a web call.
  40. - Test coverage has been improved, and some minor related bugs have been fixed.
  41. - Updated and fixed some documentation.
  42. v0.3.3 (released April 22, 2014):
  43. - Added support for Python 2.6 and 3.4.
  44. - Template.has() is now passed 'ignore_empty=False' by default instead of True.
  45. This fixes a bug when adding parameters to templates with empty fields, and
  46. is a breaking change if you rely on the default behavior.
  47. - The 'matches' argument of Wikicode's filter methods now accepts a function
  48. (taking one argument, a Node, and returning a bool) in addition to a regex.
  49. - Re-added 'flat' argument to Wikicode.get_sections(), fixed the order in which
  50. it returns sections, and made it faster.
  51. - Wikicode.matches() now accepts a tuple or list of strings/Wikicode objects
  52. instead of just a single string or Wikicode.
  53. - Given the frequency of issues with the (admittedly insufficient) tag parser,
  54. there's a temporary skip_style_tags argument to parse() that ignores '' and
  55. ''' until these issues are corrected.
  56. - Fixed a parser bug involving nested wikilinks and external links.
  57. - C code cleanup and speed improvements.
  58. v0.3.2 (released September 1, 2013):
  59. - Added support for Python 3.2 (along with current support for 3.3 and 2.7).
  60. - Renamed Template.remove()'s first argument from 'name' to 'param', which now
  61. accepts Parameter objects in addition to parameter name strings.
  62. v0.3.1 (released August 29, 2013):
  63. - Fixed a parser bug involving URLs nested inside other markup.
  64. - Fixed some typos.
  65. v0.3 (released August 24, 2013):
  66. - Added complete support for HTML Tags, including forms like <ref>foo</ref>,
  67. <ref name="bar"/>, and wiki-markup tags like bold ('''), italics (''), and
  68. lists (*, #, ; and :).
  69. - Added support for ExternalLinks (http://example.com/ and
  70. [http://example.com/ Example]).
  71. - Wikicode's filter methods are now passed 'recursive=True' by default instead
  72. of False. This is a breaking change if you rely on any filter() methods being
  73. non-recursive by default.
  74. - Added a matches() method to Wikicode for page/template name comparisons.
  75. - The 'obj' param of Wikicode.insert_before(), insert_after(), replace(), and
  76. remove() now accepts other Wikicode objects and strings representing parts of
  77. wikitext, instead of just nodes. These methods also make all possible
  78. substitutions instead of just one.
  79. - Renamed Template.has_param() to has() for consistency with Template's other
  80. methods; has_param() is now an alias.
  81. - The C tokenizer extension now works on Python 3 in addition to Python 2.7.
  82. - Various bugfixes, internal changes, and cleanup.
  83. v0.2 (released June 20, 2013):
  84. - The parser now fully supports Python 3 in addition to Python 2.7.
  85. - Added a C tokenizer extension that is significantly faster than its Python
  86. equivalent. It is enabled by default (if available) and can be toggled by
  87. setting `mwparserfromhell.parser.use_c` to a boolean value.
  88. - Added a complete set of unit tests covering parsing and wikicode
  89. manipulation.
  90. - Renamed Wikicode.filter_links() to filter_wikilinks() (applies to ifilter as
  91. well).
  92. - Added filter methods for Arguments, Comments, Headings, and HTMLEntities.
  93. - Added 'before' param to Template.add(); renamed 'force_nonconformity' to
  94. 'preserve_spacing'.
  95. - Added 'include_lead' param to Wikicode.get_sections().
  96. - Removed 'flat' param from Wikicode.get_sections().
  97. - Removed 'force_no_field' param from Template.remove().
  98. - Added support for Travis CI.
  99. - Added note about Windows build issue in the README.
  100. - The tokenizer will limit itself to a realistic recursion depth to prevent
  101. errors and unreasonably long parse times.
  102. - Fixed how some nodes' attribute setters handle input.
  103. - Fixed multiple bugs in the tokenizer's handling of invalid markup.
  104. - Fixed bugs in the implementation of SmartList and StringMixIn.
  105. - Fixed some broken example code in the README; other copyedits.
  106. - Other bugfixes and code cleanup.
  107. v0.1.1 (released September 21, 2012):
  108. - Added support for Comments (<!-- foo -->) and Wikilinks ([[foo]]).
  109. - Added corresponding ifilter_links() and filter_links() methods to Wikicode.
  110. - Fixed a bug when parsing incomplete templates.
  111. - Fixed strip_code() to affect the contents of headings.
  112. - Various copyedits in documentation and comments.
  113. v0.1 (released August 23, 2012):
  114. - Initial release.