Skip to content

Add support for block and scripts - #75

Merged
wismill merged 5 commits into
masterfrom
wip/block_and_scripts
Sep 17, 2022
Merged

wismill merged 5 commits into
masterfrom
wip/block_and_scripts

Conversation

@wismill

@wismill wismill commented Jun 15, 2022 •

Copy link
Copy Markdown
Collaborator

Add support for block and scripts.

@wismill

wismill commented Jun 24, 2022

Copy link
Copy Markdown
Collaborator Author

Rebased & squashed

@wismill

wismill commented Jul 8, 2022

Copy link
Copy Markdown
Collaborator Author

@harendra-kumar @adithyaov could you have a look at it?

@wismill wismill mentioned this pull request Jul 9, 2022
genBlocksModule moduleName = done <$> Fold.foldl' step initial
where

done (blocks, defs, ranges) = let ranges' = reverse ranges in unlines

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can probably use Streamly.Internal.Unicode.String.str.

@wismill wismill Sep 13, 2022 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find reference to neither the module nor the function on Hackage. The parser is also far from optimized in many other places.

@adithyaov adithyaov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for the extremely delayed review.
Overall, LGTM!

@wismill

wismill commented Sep 13, 2022

Copy link
Copy Markdown
Collaborator Author

@harendra-kumar I will merge this soon if there is no further comment.

@harendra-kumar harendra-kumar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • The script file is quite big, this will also make the compiled library size big, do we want to put it into a separate package like name/name-aliases?
  • To avoid making too many packages we can possibly have just two packages, we can call the lightweight package as unicode-data-core and bundle everything including unicode-data-core in the all-inclusive unicode-data package.
  • What is difference in "script" and "inScript" APIs? can inScript be derived from script? Similar question for block and inBlock.

@harendra-kumar

Copy link
Copy Markdown
Member

@wismill I think the review got delayed because this was a wip earlier and I missed when it became ready for review. If you are not getting attention for some PR please ping me or send an email requesting review on my personal email id harendra.kumar at gmail.

@wismill

wismill commented Sep 14, 2022 •

Copy link
Copy Markdown
Collaborator Author
  • The script file is quite big, this will also make the compiled library size big, do we want to put it into a separate package like name/name-aliases?

  • To avoid making too many packages we can possibly have just two packages, we can call the lightweight package as unicode-data-core and bundle everything including unicode-data-core in the all-inclusive unicode-data package.

I do not have a strong opinion on this. I like the idea of unicode-data-core with the bare minimum and unicode-data with “all batteries included”. But then we should define criteria where to include APIs. Currently there are 4 packages depending on unicode-data.

Let’s merge this PR and discuss the split in #82.

  • What is difference in "script" and "inScript" APIs? can inScript be derived from script? Similar question for block and inBlock.

Fixed: inScript s = (== s) . script

@wismill
wismill force-pushed the wip/block_and_scripts branch from 0251b9b to 303a5ce Compare September 15, 2022 08:21
@wismill

wismill commented Sep 15, 2022

Copy link
Copy Markdown
Collaborator Author

Rebased

@wismill

wismill commented Sep 16, 2022

Copy link
Copy Markdown
Collaborator Author

@harendra-kumar I splited scripts into a new package unicode-data-scripts.

@wismill
wismill merged commit 76572e6 into master Sep 17, 2022
@wismill
wismill deleted the wip/block_and_scripts branch September 26, 2022 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants