Skip to content

Commit 7fb5781

Browse files
author
Lance Nathan
authored
Merge pull request #116 from LuminosoInsight/name-update
Name update
2 parents 711deee + 63ac8ac commit 7fb5781

File tree

9 files changed

+23
-17
lines changed

9 files changed

+23
-17
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ You can also clone this Git repository and install it with
136136

137137
## Who maintains ftfy?
138138

139-
I'm Rob Speer (rob@luminoso.com). I develop this tool as part of my
139+
I'm Robyn Speer (rspeer@luminoso.com). I develop this tool as part of my
140140
text-understanding company, [Luminoso](http://luminoso.com), where it has
141141
proven essential.
142142

docs/conf.py

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@
4141

4242
# General information about the project.
4343
project = u'ftfy'
44-
copyright = u'2017, Rob Speer'
44+
copyright = u'2018, Robyn Speer'
4545

4646
# The version info for the project you're documenting, acts as replacement for
4747
# |version| and |release|, also used in various other places throughout the
4848
# built documents.
4949
#
5050
# The short X.Y version.
51-
version = '5.3'
51+
version = '5.5'
5252
# The full version, including alpha/beta/rc tags.
53-
release = '5.3.0'
53+
release = '5.5.2'
5454

5555
# The language for content autogenerated by Sphinx. Refer to documentation
5656
# for a list of supported languages.
@@ -185,10 +185,7 @@
185185

186186
# Grouping the document tree into LaTeX files. List of tuples
187187
# (source start file, target name, title, author, documentclass [howto/manual]).
188-
latex_documents = [
189-
('index', 'ftfy.tex', u'ftfy Documentation',
190-
u'Rob Speer', 'manual'),
191-
]
188+
latex_documents = []
192189

193190
# The name of an image file (relative to this directory) to place at the top of
194191
# the title page.
@@ -216,8 +213,7 @@
216213
# One entry per manual page. List of tuples
217214
# (source start file, name, description, authors, manual section).
218215
man_pages = [
219-
('index', 'ftfy', u'ftfy Documentation',
220-
[u'Rob Speer'], 1)
216+
('index', 'ftfy', 'ftfy Documentation', ['Robyn Speer'], 1)
221217
]
222218

223219
# If true, show URL addresses after external links.
@@ -229,11 +225,7 @@
229225
# Grouping the document tree into Texinfo files. List of tuples
230226
# (source start file, target name, title, author,
231227
# dir menu entry, description, category)
232-
texinfo_documents = [
233-
('index', 'ftfy', u'ftfy Documentation',
234-
u'Rob Speer', 'ftfy', 'One line description of project.',
235-
'Miscellaneous'),
236-
]
228+
texinfo_documents = []
237229

238230
# Documents to append as an appendix to all manuals.
239231
#texinfo_appendices = []

ftfy/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ def fix_text(text,
185185

186186
return ''.join(out)
187187

188+
188189
# Some alternate names for the main functions
189190
ftfy = fix_text
190191
fix_encoding = fixes.fix_encoding

ftfy/bad_codecs/sloppy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ class StreamReader(Codec, codecs.StreamReader):
149149
streamwriter=StreamWriter,
150150
)
151151

152+
152153
# Define a codec for each incomplete encoding. The resulting CODECS dictionary
153154
# can be used by the main module of ftfy.bad_codecs.
154155
CODECS = {}

ftfy/badness.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ def _make_weirdness_regex():
9191
regex = '|'.join(groups)
9292
return re.compile(regex)
9393

94+
9495
WEIRDNESS_RE = _make_weirdness_regex()
9596

9697
# These characters appear in mojibake but also appear commonly on their own.
@@ -152,6 +153,7 @@ def _make_weirdness_regex():
152153
'вЂ[љћ¦°№™ќ“”]'
153154
)
154155

156+
155157
def sequence_weirdness(text):
156158
"""
157159
Determine how often a text has unexpected characters or sequences of

ftfy/build_data.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,6 @@ def make_char_data_file(do_it_anyway=False):
125125
out.write(zlib.compress(''.join(cclasses).encode('ascii')))
126126
out.close()
127127

128+
128129
if __name__ == '__main__':
129130
make_char_data_file()

ftfy/chardata.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ def _build_regexes():
4747
regex = '^[\x00-\x19\x1b-\x7f{0}]*$'.format(charlist)
4848
encoding_regexes[encoding] = re.compile(regex)
4949
return encoding_regexes
50+
51+
5052
ENCODING_REGEXES = _build_regexes()
5153

5254

@@ -68,6 +70,8 @@ def _build_utf8_punct_regex():
6870
+ bytes(range(0x80, 0xa0)).decode('sloppy-windows-1252')
6971
+ ']')
7072
return re.compile(obvious_utf8)
73+
74+
7175
PARTIAL_UTF8_PUNCT_RE = _build_utf8_punct_regex()
7276

7377

@@ -173,6 +177,8 @@ def _build_control_char_mapping():
173177
control_chars[i] = None
174178

175179
return control_chars
180+
181+
176182
CONTROL_CHARS = _build_control_char_mapping()
177183

178184

@@ -228,4 +234,6 @@ def _build_width_map():
228234
if alternate != char:
229235
width_map[i] = alternate
230236
return width_map
237+
238+
231239
WIDTH_MAP = _build_width_map()

ftfy/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
Can't read and write the same file. Please output to a new file instead.
3939
"""
4040

41+
4142
def main():
4243
"""
4344
Run ftfy as a command-line utility.

ftfy/fixes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def unescape_html(text):
327327
"""
328328
Decode all three types of HTML entities/character references.
329329
330-
Code by Fredrik Lundh of effbot.org. Rob Speer made a slight change
330+
Code by Fredrik Lundh of effbot.org. Robyn Speer made a slight change
331331
to it for efficiency: it won't match entities longer than 8 characters,
332332
because there are no valid entities like that.
333333
@@ -659,7 +659,7 @@ def latin1_to_w1252(match):
659659
def w1252_to_utf8(match):
660660
"The function to apply when this regex matches."
661661
return match.group(0).encode('sloppy-windows-1252').decode('utf-8')
662-
662+
663663
text = C1_CONTROL_RE.sub(latin1_to_w1252, text)
664664
return PARTIAL_UTF8_PUNCT_RE.sub(w1252_to_utf8, text)
665665

0 commit comments

Comments
 (0)