A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

106 linhas
4.5 KiB

  1. Changelog
  2. =========
  3. v0.4
  4. ----
  5. Unreleased
  6. (`changes <https://github.com/earwig/mwparserfromhell/compare/v0.3.1...develop>`__):
  7. - Added support for Python 3.2 (along with current support for 3.3 and 2.7).
  8. - Renamed :py:meth:`.Template.remove`\ 's first argument from *name* to
  9. *param*, which now accepts :py:class:`.Parameter` objects in addition to
  10. parameter name strings.
  11. v0.3.1
  12. ------
  13. `Released August 29, 2013 <https://github.com/earwig/mwparserfromhell/tree/v0.3.1>`_
  14. (`changes <https://github.com/earwig/mwparserfromhell/compare/v0.3...v0.3.1>`__):
  15. - Fixed a parser bug involving URLs nested inside other markup.
  16. - Fixed some typos.
  17. v0.3
  18. ----
  19. `Released August 24, 2013 <https://github.com/earwig/mwparserfromhell/tree/v0.3>`_
  20. (`changes <https://github.com/earwig/mwparserfromhell/compare/v0.2...v0.3>`__):
  21. - Added complete support for HTML :py:class:`Tags <.Tag>`, including forms like
  22. ``<ref>foo</ref>``, ``<ref name="bar"/>``, and wiki-markup tags like bold
  23. (``'''``), italics (``''``), and lists (``*``, ``#``, ``;`` and ``:``).
  24. - Added support for :py:class:`.ExternalLink`\ s (``http://example.com/`` and
  25. ``[http://example.com/ Example]``).
  26. - :py:class:`Wikicode's <.Wikicode>` :py:meth:`.filter` methods are now passed
  27. *recursive=True* by default instead of *False*. **This is a breaking change
  28. if you rely on any filter() methods being non-recursive by default.**
  29. - Added a :py:meth:`.matches` method to :py:class:`~.Wikicode` for
  30. page/template name comparisons.
  31. - The *obj* param of :py:meth:`Wikicode.insert_before() <.insert_before>`,
  32. :py:meth:`~.insert_after`, :py:meth:`~.Wikicode.replace`, and
  33. :py:meth:`~.Wikicode.remove` now accepts :py:class:`~.Wikicode` objects and
  34. strings representing parts of wikitext, instead of just nodes. These methods
  35. also make all possible substitutions instead of just one.
  36. - Renamed :py:meth:`Template.has_param() <.has_param>` to
  37. :py:meth:`~.Template.has` for consistency with :py:class:`~.Template`\ 's
  38. other methods; :py:meth:`~.has_param` is now an alias.
  39. - The C tokenizer extension now works on Python 3 in addition to Python 2.7.
  40. - Various bugfixes, internal changes, and cleanup.
  41. v0.2
  42. ----
  43. `Released June 20, 2013 <https://github.com/earwig/mwparserfromhell/tree/v0.2>`_
  44. (`changes <https://github.com/earwig/mwparserfromhell/compare/v0.1.1...v0.2>`__):
  45. - The parser now fully supports Python 3 in addition to Python 2.7.
  46. - Added a C tokenizer extension that is significantly faster than its Python
  47. equivalent. It is enabled by default (if available) and can be toggled by
  48. setting :py:attr:`mwparserfromhell.parser.use_c` to a boolean value.
  49. - Added a complete set of unit tests covering parsing and wikicode
  50. manipulation.
  51. - Renamed :py:meth:`.filter_links` to :py:meth:`.filter_wikilinks` (applies to
  52. :py:meth:`.ifilter` as well).
  53. - Added filter methods for :py:class:`Arguments <.Argument>`,
  54. :py:class:`Comments <.Comment>`, :py:class:`Headings <.Heading>`, and
  55. :py:class:`HTMLEntities <.HTMLEntity>`.
  56. - Added *before* param to :py:meth:`Template.add() <.Template.add>`; renamed
  57. *force_nonconformity* to *preserve_spacing*.
  58. - Added *include_lead* param to :py:meth:`Wikicode.get_sections()
  59. <.get_sections>`.
  60. - Removed *flat* param from :py:meth:`.get_sections`.
  61. - Removed *force_no_field* param from :py:meth:`Template.remove()
  62. <.Template.remove>`.
  63. - Added support for Travis CI.
  64. - Added note about Windows build issue in the README.
  65. - The tokenizer will limit itself to a realistic recursion depth to prevent
  66. errors and unreasonably long parse times.
  67. - Fixed how some nodes' attribute setters handle input.
  68. - Fixed multiple bugs in the tokenizer's handling of invalid markup.
  69. - Fixed bugs in the implementation of :py:class:`.SmartList` and
  70. :py:class:`.StringMixIn`.
  71. - Fixed some broken example code in the README; other copyedits.
  72. - Other bugfixes and code cleanup.
  73. v0.1.1
  74. ------
  75. `Released September 21, 2012 <https://github.com/earwig/mwparserfromhell/tree/v0.1.1>`_
  76. (`changes <https://github.com/earwig/mwparserfromhell/compare/v0.1...v0.1.1>`__):
  77. - Added support for :py:class:`Comments <.Comment>` (``<!-- foo -->``) and
  78. :py:class:`Wikilinks <.Wikilink>` (``[[foo]]``).
  79. - Added corresponding :py:meth:`.ifilter_links` and :py:meth:`.filter_links`
  80. methods to :py:class:`.Wikicode`.
  81. - Fixed a bug when parsing incomplete templates.
  82. - Fixed :py:meth:`.strip_code` to affect the contents of headings.
  83. - Various copyedits in documentation and comments.
  84. v0.1
  85. ----
  86. `Released August 23, 2012 <https://github.com/earwig/mwparserfromhell/tree/v0.1>`_:
  87. - Initial release.