# PDF-to-Kindle Conversion & Regex Patterns Cheat Sheet ## PDF-to-Kindle Conversion Methods ### Method 1: Email to Kindle 1. **Find your Kindle email**: On Amazon, go to "Manage Your Content and Devices" > "Devices" > select your Kindle device 2. **Approve your sending email**: In "Preferences" > "Personal Document Settings" 3. **Send the PDF**: - Subject line "convert" (to convert format) or blank (to keep as PDF) - Attach PDF (≤50MB) - Send to your_kindle_name@kindle.com ### Method 2: Calibre (Advanced) 1. **Install** from [calibre-ebook.com](https://calibre-ebook.com) 2. **Add PDF**: Click "Add books" 3. **Convert**: Select PDF → Click "Convert books" → Output format: MOBI or AZW3 4. **Configure**: Structure Detection, Look & Feel, Page Setup 5. **Transfer**: Connect Kindle via USB → Right-click book → "Send to device" ### Method 3: Send to Kindle App 1. **Install** from [Amazon Send to Kindle](https://www.amazon.com/sendtokindle) 2. **Launch and sign in** 3. **Add files**: Drag and drop PDFs or browse 4. **Send** to your Kindle ### Method 4: Online Converters - [Zamzar](https://www.zamzar.com) - [CloudConvert](https://cloudconvert.com) ### Method 5: Amazon's Conversion Service 1. Connect Kindle via USB 2. Copy PDF to "documents" folder 3. On Kindle, long-press PDF → "Convert to Kindle Format" ## Regex Patterns for E-book Conversion & Cleanup ### Clean Up Formatting Issues #### Remove Extra Line Breaks ```regex (?\s*

``` Replace with empty string to remove empty paragraphs. #### Normalize Heading Tags ```regex (.+?) ``` Can be used to identify and standardize heading formats. #### Fix Image References ```regex ]*src="([^"]+)"[^>]*> ``` Identify image references for fixing broken paths. ### Special Character Handling #### Convert Special Characters to Entities ```regex [^\x00-\x7F] ``` Find non-ASCII characters that might need special handling. #### Find and Replace Unicode Fractions ```regex ¼|½|¾|⅓|⅔|⅕|⅖|⅗|⅘|⅙|⅚|⅛|⅜|⅝|⅞ ``` For replacing Unicode fractions with ASCII equivalents. #### Find Smart Quotes ```regex "|"|'|' ``` Convert to standard quotes if causing issues. ## Calibre-Specific Regex Search & Replace Access in Calibre via "Convert books" → "Search & Replace" ### Remove Headers ```regex ^.+?CHAPTER.+?$ ``` Customize based on your book's header pattern. ### Fix Scene Break Markers ```regex ^[*\s*]{3,}$ ``` Standardize scene break markers. ### Fix First Line Indentation ```regex (?