diff --git a/Note.xcodeproj/project.pbxproj b/Note.xcodeproj/project.pbxproj index 0fdd362..c74a62c 100644 --- a/Note.xcodeproj/project.pbxproj +++ b/Note.xcodeproj/project.pbxproj @@ -264,10 +264,10 @@ "INFOPLIST_KEY_UIStatusBarStyle[sdk=iphonesimulator*]" = UIStatusBarStyleDefault; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; - IPHONEOS_DEPLOYMENT_TARGET = 26.2; + IPHONEOS_DEPLOYMENT_TARGET = 26.0; LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"; "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks"; - MACOSX_DEPLOYMENT_TARGET = 26.2; + MACOSX_DEPLOYMENT_TARGET = 26.0; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = com.fishestlife.note.Note; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -281,7 +281,7 @@ SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2,7"; - XROS_DEPLOYMENT_TARGET = 26.2; + XROS_DEPLOYMENT_TARGET = 26.0; }; name = Debug; }; @@ -308,10 +308,10 @@ "INFOPLIST_KEY_UIStatusBarStyle[sdk=iphonesimulator*]" = UIStatusBarStyleDefault; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; - IPHONEOS_DEPLOYMENT_TARGET = 26.2; + IPHONEOS_DEPLOYMENT_TARGET = 26.0; LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"; "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks"; - MACOSX_DEPLOYMENT_TARGET = 26.2; + MACOSX_DEPLOYMENT_TARGET = 26.0; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = com.fishestlife.note.Note; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -325,7 +325,7 @@ SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2,7"; - XROS_DEPLOYMENT_TARGET = 26.2; + XROS_DEPLOYMENT_TARGET = 26.0; }; name = Release; }; diff --git a/formatter_cloud.py b/formatter_cloud.py new file mode 100644 index 0000000..9baff63 --- /dev/null +++ b/formatter_cloud.py @@ -0,0 +1,46 @@ +import os + + +def format_md_file(file_path): + with open(file_path, 'r', encoding='utf-8') as file: + content = file.read() + + # 去# + content = content.replace('# ', '') + content = content.replace('#', '') + # 将;转为句号 + content = content.replace(';', '。') + # 将;转为句号 + content = content.replace(';', '。') + # 将.转为句号 + content = content.replace('.', '。') + # 将(转为( + content = content.replace('(', '(') + # 将)转为) + content = content.replace(')', ')') + # 将?转为? + content = content.replace('?', '?') + # 将,转为, + content = content.replace(',', ',') + # 将:转为: + content = content.replace(':', ':') + # 将 日星期 转为:日 星期 + content = content.replace('日星期', '日 星期') + # 在第一行插入 # + content = '# ' + content + # 标题设置 + content = content.replace('一、生活方面', '## 一、生活方面') + content = content.replace('二、交易方面', '## 二、交易方面') + content = content.replace('三、工作方面', '## 三、工作方面') + + with open(file_path, 'w', encoding='utf-8') as file: + file.write(content) + +if __name__ == "__main__": + current_dir = os.path.dirname(os.path.abspath(__file__)) + print(current_dir) + for root, dirs, files in os.walk(current_dir): + for file in files: + if file.endswith('.md'): + file_path = os.path.join(root, file) + format_md_file(file_path) \ No newline at end of file