Fixing a Chrome dictionary issue

A technical description of fixing a browser bug and contributing to Chrome’s codebase

The problem

Image for post
Image for post

Installing and compiling Chromium

First intermediate goal

Image for post
Image for post
Image for post
Image for post
E:\src\third_party\hunspell_dictionaries>\src\out\Debug\convert_dict.exe en_US
Reading en_US.aff ...
Reading en_US.dic ...
Reading en_US.dic_delta ...
Serializing...
Verifying...
Writing en_US.bdic ...
E:\src>copy third_party\hunspell_dictionaries\en_US.bdic out\Debug\Dictionaries\en-US-4–0.bdic
E:\src>out\debug\Chrome
Image for post
Image for post

Second intermediate goal

SET ISO8859-1
TRY esianrtolcdugmphbyfvkwzESIANRTOLCDUGMPHBYFVKWZ'
NOSUGGEST !
SET ISO8859-1
TRY esianrtolcdugmphbyfvkwzESIANRTOLCDUGMPHBYFVKWZ'
NOSUGGEST !
ICONV 1
ICONV : '
Image for post
Image for post

Actual goal

SET ISO8859-1
TRY esianrtolcdugmphbyfvkwzESIANRTOLCDUGMPHBYFVKWZ'
NOSUGGEST !
SET UTF8
TRY esianrtolcdugmphbyfvkwzESIANRTOLCDUGMPHBYFVKWZ'
NOSUGGEST !
ICONV 1
ICONV ’ '
Image for post
Image for post

Final steps

git checkout -b mwichary-typographical-quotes
git add en_US.affgit commit -m "Smart/typographical quotes for en-US."git cl upload

Written by

Designer/typographer · Writing a book on the history of keyboards: https://aresluna.org/shift-happens

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store