Skip to content

Commit 82de67a

Browse files
committed
Grammatical/Logical fixes
1 parent 34d7381 commit 82de67a

File tree

1 file changed

+9
-9
lines changed
  • content/posts/GSoC_2021_PreQuarter

1 file changed

+9
-9
lines changed

content/posts/GSoC_2021_PreQuarter/index.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ resources:
1616

1717
**“<ins>Well? Did you get it working?!</ins>”**
1818

19-
Before I answer that question, if you're missing the context, check out my previous blog's last few lines.. promise it won't take you more than 30 seconds to get the whole problem!
19+
Before I answer that question, if you're missing the context, check out my [previous blog](https://matplotlib.org/matplotblog/posts/gsoc_2021_midterm/)'s last few lines.. promise it won't take you more than 30 seconds to get the whole problem!
2020

2121
With this short writeup, I intend to talk about _what_ we did and _why_ we did, what we did. XD
2222

2323
## Ostrich Algorithm
2424
Ring any bells? Remember OS (Operating Systems)? It's one of the core CS subjects which I bunked then and regret now. (╥﹏╥)
2525

2626
The [wikipedia page](https://en.wikipedia.org/wiki/Ostrich_algorithm) has a 2-liner explaination if you have no idea what's an Ostrich Algorithm.. but I know most of y'all won't bother clicking it XD, so here goes:
27-
> Ostrich algorithm is a strategy of ignoring potential problems by "sticking one's head in the sand and pretend there is no problem"
27+
> Ostrich algorithm is a strategy of ignoring potential problems by "sticking one's head in the sand and pretending there is no problem"
2828
2929
An important thing to note: it is used when it is more **cost-effective** to _allow the problem to occur than to attempt its prevention_.
3030

@@ -34,16 +34,16 @@ As you might've guessed by now, we ultimately ended up with the *not-so-clean* A
3434
The highest level overview of the problem was:
3535

3636
```
37-
library1 -> buffer -> library2_with_buffer
38-
library1 -> buffer -> tempfile -> library2_with_file
37+
fontTools -> buffer -> ttconv_with_buffer
38+
fontTools -> buffer -> tempfile -> ttconv_with_file
3939
```
40-
The first approach created corrupted outputs, however the second approach worked fine. A point to note here would be that*Method 1* is better in terms of separation of *reading* the file from *parsing* the data.
40+
The first approach created corrupted outputs, however the second approach worked fine. A point to note here would be that *Method 1* is better in terms of separation of *reading* the file from *parsing* the data.
4141

42-
1. `library1` is [fontTools](https://github.com/fonttools/fonttools), whereas `library2` is [ttconv](https://github.com/matplotlib/matplotlib/tree/master/extern/ttconv).
43-
2. `library2_with_buffer` is <ins>ttconv</ins>, but modified to input a file buffer instead of a file-path
42+
1. [fontTools](https://github.com/fonttools/fonttools) handles the Type42 subsetting for us, whereas [ttconv](https://github.com/matplotlib/matplotlib/tree/master/extern/ttconv) handles the embedding.
43+
2. `ttconv_with_buffer` is a modification to the original `ttconv_with_file`; that allows it to input a file buffer instead of a file-path
4444

4545
You might be tempted to say:
46-
> "Well, `library2_with_buffer` must be wrongly modified, duh."
46+
> "Well, `ttconv_with_buffer` must be wrongly modified, duh."
4747
4848
Logically, yes. `ttconv` was designed to work with a file-path and not a file-object (buffer), and modifying a codebase **written in 1998** turned out to be a larger pain than we anticipated.
4949
#### It came to a point where one of my mentors decided to implement everything in Python!
@@ -87,6 +87,6 @@ We still need to migrate the library's internal implementation from **font-first
8787

8888

8989
But that's for later, for now:
90-
![OneAgainThankingYou](https://user-images.githubusercontent.com/43996118/126441988-5a2067fd-055e-44e5-86e9-4dddf47abc9d.png)
90+
![OnceAgainThankingYou](https://user-images.githubusercontent.com/43996118/126441988-5a2067fd-055e-44e5-86e9-4dddf47abc9d.png)
9191

9292
#### NOTE: This blog post is also available at my [personal website](https://aitikgupta.github.io/gsoc-pre-quarter/).

0 commit comments

Comments
 (0)