Instruction file imported from ella-yschoi/book-review (
.cursor/rules/file-organization-translation.mdc). Copyright stays with the author.
File Organization for Translation Project
π― Purpose
This rule defines the file organization, naming conventions, and directory structure for managing both Korean and English versions of the book review content.
π Referenced Files
- Main structure: README.md
- Korean directories:
ds-the-fun-way/,five-lines-of-code/,리μ‘νΈ-ν μ-νμ©ν-λ§μ΄ν¬λ‘-μν-κ΄λ¦¬/ - Template: Template.md
π¨ CRITICAL ORGANIZATION RULES - MUST FOLLOW
1. Directory Structure Standards
- MUST create English directories parallel to Korean ones
- MUST use English directory names for translated content
- MUST maintain the same hierarchy and organization
- MUST preserve numbered prefixes in filenames
2. File Naming Convention
- MUST use English filenames for translated content
- MUST keep numbered prefixes:
01_,02_,03_ - MUST use underscores instead of spaces
- MUST translate chapter titles to English
- MUST maintain file extensions:
.md
3. Directory Mapping
# Korean β English Directory Mapping
kor/ds-the-fun-way/ β en/ds-the-fun-way/
kor/five-lines-of-code/ β en/five-lines-of-code/
kor/리μ‘νΈ-ν
μ-νμ©ν-λ§μ΄ν¬λ‘-μν-κ΄λ¦¬/ β en/react-hooks-micro-state-management/
kor/μ»΄ν¨ν°-λ°λ°λ₯μ-λΉλ°/ β en/computer-secrets/
β ORGANIZATION VIOLATIONS - STRICTLY FORBIDDEN
1. Structure Violations
- NEVER mix Korean and English content in the same directory
- NEVER change the original Korean files during translation
- NEVER lose the numbered prefix system
- NEVER create inconsistent naming patterns
- NEVER break the directory hierarchy
2. File Management Violations
- NEVER overwrite original Korean files
- NEVER create files without proper naming
- NEVER skip creating parallel directory structure
- NEVER mix different book content in same directory
3. Organization Violations
- NEVER create flat file structure (lose organization)
- NEVER ignore the existing project structure
- NEVER create ambiguous directory names
- NEVER skip README files for English directories
β BEST PRACTICES FOR FILE ORGANIZATION
1. Directory Creation Pattern
mkdir -p en/ds-the-fun-way/
mkdir -p en/five-lines-of-code/
mkdir -p en/react-hooks-micro-state-management/
mkdir -p en/computer-secrets/
mkdir -p kor/ds-the-fun-way/
mkdir -p kor/five-lines-of-code/
mkdir -p kor/리μ‘νΈ-ν
μ-νμ©ν-λ§μ΄ν¬λ‘-μν-κ΄λ¦¬/
mkdir -p kor/μ»΄ν¨ν°-λ°λ°λ₯μ-λΉλ°/
2. File Naming Translation Examples
# Korean Filename β English Filename
01_λ©λͺ¨λ¦¬_μ_μ 보.md β 01_memory_information.md
02_μ΄μ§_νμ.md β 02_binary_search.md
03_λμ _μλ£_ꡬ쑰.md β 03_dynamic_data_structures.md
04_μ€νκ³Ό_ν.md β 04_stacks_and_queues.md
05_μ΄μ§_νμ_νΈλ¦¬.md β 05_binary_search_trees.md
3. README File Translation
# Korean README β English README
# π μ½κ³ λλ©΄ μ§μ§ μ¬μμ§λ μλ£κ΅¬μ‘°
# β # π Data Structures the Fun Way
# π 리μ‘νΈ ν
μ νμ©ν λ§μ΄ν¬λ‘ μν κ΄λ¦¬
# β # π React Hooks for Micro State Management
# π μ»΄ν¨ν° λ°λ°λ₯μ λΉλ°
# β # π Secrets of Computer Systems
π§ File Management Standards
1. Translation Workflow
- Identify Korean directory to translate
- Create parallel English directory with proper naming
- Create English README for the directory
- Translate files one by one maintaining structure
- Update internal links to point to English versions
- Verify all files are properly organized
2. Link Management
- MUST update internal links in translated content
- MUST maintain external links (LeetCode, GitHub, etc.)
- MUST create cross-references between Korean and English versions
- MUST update main README to include English versions
3. Content Synchronization
- MUST keep both versions up to date
- MUST maintain parallel structure between versions
- MUST ensure consistency in numbering and organization
- MUST create clear navigation between versions
π File Organization Checklist
- English directories created with proper names
- File naming follows English conventions
- Numbered prefixes maintained
- Directory hierarchy preserved
- README files created for English directories
- Internal links updated in translated content
- External links preserved
- Cross-references created between versions
- Main README updated to include English versions
- File extensions maintained (.md)
- No original Korean files modified
- Parallel structure maintained
- Clear separation between Korean and English content
- Consistent naming patterns throughout
- Navigation between versions clear
π― Success Criteria
- Organization: Clear, logical directory structure for both languages
- Consistency: Uniform naming conventions across all files
- Accessibility: Easy navigation between Korean and English versions
- Maintainability: Simple to update and manage both versions
- Clarity: Clear distinction between original and translated content
- Completeness: All content properly organized and accessible