Skip to content

Fix/fix language issues#609

Merged
nicdun merged 5 commits intomainfrom
fix/fix-language-issues
Aug 30, 2025
Merged

Fix/fix language issues#609
nicdun merged 5 commits intomainfrom
fix/fix-language-issues

Conversation

@nicdun
Copy link
Copy Markdown
Owner

@nicdun nicdun commented Aug 30, 2025

closes #345 and #523

nicdun added 3 commits August 30, 2025 15:35
… tests

- Fix isHighlightValid error by refactoring parsing logic to iterate noteHeading elements
- Add text normalization function to handle non-breaking spaces, curly quotes, and dashes
- Implement language-agnostic parsing using structural DOM elements instead of text content
- Add comprehensive unit tests with Vitest/jsdom for French and English fixtures
- Test first 5 highlights from each language to validate parsing consistency
- Fix author parsing to properly trim and split multiple authors
- Add lessons-learned documentation for future reference
- Configure test environment with proper plugin handling

This resolves the TypeError when parsing international Kindle exports and ensures
robust parsing across different languages and character encodings.
…ugin

- Load @tailwindcss/vite via dynamic import to avoid CJS/ESM interop
- Load vite-plugin-logseq via createRequire to handle CommonJS
- Move test config out of Vite config to avoid type errors
- Keep all plugins enabled; no removals

Refs: fix/fix-language-issues
@nicdun nicdun force-pushed the fix/fix-language-issues branch from 4d3624c to aacb931 Compare August 30, 2025 15:07
nicdun added 2 commits August 30, 2025 17:09
… headers

- Introduce `groupBySectionHeader` boolean setting
- Create chapter heading blocks (##) and nest highlights as children when enabled
- Add helper functions for heading and child block creation
- Keep original flat mode when setting is disabled
- Add minimal test to validate grouping behavior

Refs: #grouping
@nicdun nicdun force-pushed the fix/fix-language-issues branch from aacb931 to cbe7d57 Compare August 30, 2025 15:09
@nicdun nicdun merged commit e7ac6a5 into main Aug 30, 2025
1 check passed
nicdun added a commit that referenced this pull request Aug 30, 2025
* fix(parsing): resolve character encoding issues and add comprehensive tests

- Fix isHighlightValid error by refactoring parsing logic to iterate noteHeading elements
- Add text normalization function to handle non-breaking spaces, curly quotes, and dashes
- Implement language-agnostic parsing using structural DOM elements instead of text content
- Add comprehensive unit tests with Vitest/jsdom for French and English fixtures
- Test first 5 highlights from each language to validate parsing consistency
- Fix author parsing to properly trim and split multiple authors
- Add lessons-learned documentation for future reference
- Configure test environment with proper plugin handling

This resolves the TypeError when parsing international Kindle exports and ensures
robust parsing across different languages and character encodings.

* ci: add PR workflow with commitlint, eslint, tests, and build; migrate configs to ESM

* build(vite): support ESM-only tailwind plugin alongside CJS logseq plugin

- Load @tailwindcss/vite via dynamic import to avoid CJS/ESM interop
- Load vite-plugin-logseq via createRequire to handle CommonJS
- Move test config out of Vite config to avoid type errors
- Keep all plugins enabled; no removals

Refs: fix/fix-language-issues

* chore(tailwind): update tailwind to v4

* feat(output): add setting to group highlights by chapter with section headers

- Introduce `groupBySectionHeader` boolean setting
- Create chapter heading blocks (##) and nest highlights as children when enabled
- Add helper functions for heading and child block creation
- Keep original flat mode when setting is disabled
- Add minimal test to validate grouping behavior

Refs: #grouping
github-actions Bot pushed a commit that referenced this pull request Aug 30, 2025
# [1.4.0](v1.3.0...v1.4.0) (2025-08-30)

### Features

* **language-parsing:** language issues ([#609](#609)) ([727f6f7](727f6f7))
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.

Continuously processing

1 participant