This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
———————————————————————————————————————————————————————————————————————————————————————————————————— | |
BBEdit / BBEdit-Lite / TextWrangler Regular Expression Guide Modified: 2018/08/10 01:19 | |
———————————————————————————————————————————————————————————————————————————————————————————————————— | |
NOTES: | |
The PCRE engine (Perl Compatible Regular Expressions) is what BBEdit and TextWrangler use. | |
Items I'm unsure of are marked '# PCRE?'. The list while fairly comprehensive is not complete. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/Users/bcdav/.rbenv/shims/ruby | |
# frozen_string_literal: false | |
Encoding.default_external = Encoding::UTF_8 | |
# Bernardo C. D. A. Vasconcelos # | |
# 2022-01-06-10-02 # | |
# A Ruby class for Tinderbox Documents with methods to parse attributes, links and notes. | |
# It deals directly with the XML file and does not rely on the application's OAS interface. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# frozen_string_literal: false | |
# I use this script to find bibliographical @references (using the Pandoc syntax) cited in my markdown files | |
# that happen to be absent in the bibliography file. | |
# Pandoc syntax: [@Ref] → (Author + Year) / [-@Ref] → (Year) | |
Encoding.default_external = Encoding::UTF_8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# frozen_string_literal: false | |
# bcdav 2021 | |
# inspired by https://github.com/ltrgoddard/inliner | |
Encoding.default_external = Encoding::UTF_8 | |
class String | |
def inline_mmd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* global */ | |
:root | |
{ | |
--font-size-normal: 26px; | |
--font-size-code: 22px; | |
--font-size-side-dock: 13.5px; | |
--font-size-side-dock-title: 15px; | |
--font-size-blockquote: 20px; | |
--font-size-status-bar: 12px; | |
--line-height-preview: 1.7em; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* San Ho Dark - https://www.dropbox.com/s/pbd8ka36rflz71c/Captura%20de%20tela%202020-01-06%2020.59.31.png?dl=0 */ | |
body { | |
font-family: "EB Garamond"; | |
-ms-text-size-adjust: 100%; | |
-webkit-text-size-adjust: 100% margin: 0; | |
padding: 50px 2rem 2rem; | |
max-width: 800px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* "Cormorant Garamond SemiBold" */ | |
body { | |
font-family: "Alegreya"; | |
-ms-text-size-adjust: 100%; | |
-webkit-text-size-adjust: 100% margin: 0; | |
padding: 50px 2rem 2rem; | |
width: auto; | |
/* max-width: 800px; */ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************************************** | |
"Learning with Texts" (LWT) is free and unencumbered software | |
released into the PUBLIC DOMAIN. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a | |
compiled binary, for any purpose, commercial or non-commercial, | |
and by any means. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html { | |
height: 100%; | |
margin: 0; | |
} | |
body { | |
background-color: #434140; | |
color: #ffffff; | |
font-family: 'Gentium Plus'; | |
font-synthesis: weight; | |
height: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application id "DNtp" | |
set theRecords to the selection | |
if theRecords is {} then error "Please select some contents." | |
repeat with theRecord in theRecords | |
set customMD to custom meta data of theRecord | |
try | |
set theBibkey to mdbibkey of customMD |
NewerOlder