Commit 5a0e8416 authored by Igor Dejanovic's avatar Igor Dejanovic

Fixing cases and typos.

parent 983f4205
#-*- coding: utf-8 -*- #-*- coding: utf-8 -*-
####################################################################### #######################################################################
# Name: calc.py # Name: bibtex.py
# Purpose: Parser for bibtex files # Purpose: Parser for bibtex files
# Author: Igor R. Dejanovic <igor DOT dejanovic AT gmail DOT com> # Author: Igor R. Dejanovic <igor DOT dejanovic AT gmail DOT com>
# Copyright: (c) 2009 Igor R. Dejanovic <igor DOT dejanovic AT gmail DOT com> # Copyright: (c) 2013 Igor R. Dejanovic <igor DOT dejanovic AT gmail DOT com>
# License: MIT License # License: MIT License
# #
# This example demonstrates grammar for bibtex files. # This example demonstrates grammar for bibtex files.
...@@ -57,7 +57,7 @@ class FieldSem(SemanticAction): ...@@ -57,7 +57,7 @@ class FieldSem(SemanticAction):
class FieldValueSem(SemanticAction): class FieldValueSem(SemanticAction):
'''Converts serbian letters form latex encoding to unicode.''' '''Serbian Serbian letters form latex encoding to Unicode.'''
def first_pass(self, parser, node, nodes): def first_pass(self, parser, node, nodes):
return node.value.replace(r"\'{c}", u"ć")\ return node.value.replace(r"\'{c}", u"ć")\
.replace(r"\'{C}", u"Ć")\ .replace(r"\'{C}", u"Ć")\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment