Prechádzať zdrojové kódy

Convert all ÷ to /

Mike Plante 1 rok pred
rodič
commit
c589c636b0

+ 2 - 2
Trio/Sources/Modules/BolusCalculatorConfig/View/BolusCalculatorConfigRootView.swift

@@ -113,7 +113,7 @@ extension BolusCalculatorConfig {
                             "When \"Fatty Meal\" is selected in the bolus calculator, the recommended bolus will be multiplied by the \"Fatty Meal Bolus Percentage\" as well as the \"Recommended Bolus Percentage\"."
                             "When \"Fatty Meal\" is selected in the bolus calculator, the recommended bolus will be multiplied by the \"Fatty Meal Bolus Percentage\" as well as the \"Recommended Bolus Percentage\"."
                         )
                         )
                         Text(
                         Text(
-                            "If you have a \"Recommended Bolus Percentage\" of 80%, and a \"Fatty Meal Bolus Percentage\" of 70%, your recommended bolus will be multiplied by: (80 × 70) ÷ 100 = 56%."
+                            "If you have a \"Recommended Bolus Percentage\" of 80%, and a \"Fatty Meal Bolus Percentage\" of 70%, your recommended bolus will be multiplied by: (80 × 70) / 100 = 56%."
                         )
                         )
                         Text("This could be useful for slow absorbing meals like pizza.")
                         Text("This could be useful for slow absorbing meals like pizza.")
                     }
                     }
@@ -147,7 +147,7 @@ extension BolusCalculatorConfig {
                             "When \"Super Bolus\" is selected in the bolus calculator, your current basal rate multiplied by \"Super Bolus Percentage\" will be added to your bolus recommendation."
                             "When \"Super Bolus\" is selected in the bolus calculator, your current basal rate multiplied by \"Super Bolus Percentage\" will be added to your bolus recommendation."
                         )
                         )
                         Text(
                         Text(
-                            "If your current basal rate is 0.8 U/hr and \"Super Bolus Percentage\" is set to 200%: 0.8 × (200 ÷ 100) = 1.6 units will be added to your bolus recommendation."
+                            "If your current basal rate is 0.8 U/hr and \"Super Bolus Percentage\" is set to 200%: 0.8 × (200 / 100) = 1.6 units will be added to your bolus recommendation."
                         )
                         )
                         Text("This could be useful for fast absorbing meals like sugary cereal.")
                         Text("This could be useful for fast absorbing meals like sugary cereal.")
                     }
                     }

+ 1 - 1
Trio/Sources/Modules/DynamicSettings/View/DynamicSettingsRootView.swift

@@ -263,7 +263,7 @@ extension DynamicSettings {
                             Text(
                             Text(
                                 "Enabling Adjust Basal replaces the standard Autosens Ratio calculation with its own Autosens Ratio calculated as such:"
                                 "Enabling Adjust Basal replaces the standard Autosens Ratio calculation with its own Autosens Ratio calculated as such:"
                             )
                             )
-                            Text("Autosens Ratio =\n(Weighted Average of TDD) ÷ (10-day Average of TDD)")
+                            Text("Autosens Ratio =\n(Weighted Average of TDD) / (10-day Average of TDD)")
                             Text("New Basal Profile =\n(Current Basal Profile) × (Autosens Ratio)")
                             Text("New Basal Profile =\n(Current Basal Profile) × (Autosens Ratio)")
                         }
                         }
                     )
                     )

+ 2 - 2
Trio/Sources/Modules/SMBSettings/View/SMBSettingsRootView.swift

@@ -258,7 +258,7 @@ extension SMBSettings {
                             Text(
                             Text(
                                 "𝒳 = Max SMB Basal Minutes"
                                 "𝒳 = Max SMB Basal Minutes"
                             )
                             )
-                            Text("(𝒳 ÷ 60) × current basal rate")
+                            Text("(𝒳 / 60) × current basal rate")
                         }
                         }
 
 
                         VStack(alignment: .leading, spacing: 10) {
                         VStack(alignment: .leading, spacing: 10) {
@@ -304,7 +304,7 @@ extension SMBSettings {
                             Text(
                             Text(
                                 "𝒳 = Max UAM SMB Basal Minutes"
                                 "𝒳 = Max UAM SMB Basal Minutes"
                             )
                             )
-                            Text("(𝒳 ÷ 60) × current basal rate")
+                            Text("(𝒳 / 60) × current basal rate")
                         }
                         }
                         VStack(alignment: .leading, spacing: 10) {
                         VStack(alignment: .leading, spacing: 10) {
                             Text(
                             Text(

+ 5 - 5
Trio/Sources/Modules/Treatments/View/PopupView.swift

@@ -199,7 +199,7 @@ struct PopupView: View {
 
 
             let targetDifference = state.units == .mmolL ? state.targetDifference.formattedAsMmolL : state.targetDifference
             let targetDifference = state.units == .mmolL ? state.targetDifference.formattedAsMmolL : state.targetDifference
                 .description
                 .description
-            let secondRow = targetDifference + " ÷ " +
+            let secondRow = targetDifference + " / " +
                 (state.units == .mmolL ? state.isf.formattedAsMmolL : state.isf.description)
                 (state.units == .mmolL ? state.isf.formattedAsMmolL : state.isf.description)
                 .description + " ≈ " + self.insulinFormatter(state.targetDifferenceInsulin)
                 .description + " ≈ " + self.insulinFormatter(state.targetDifferenceInsulin)
 
 
@@ -213,7 +213,7 @@ struct PopupView: View {
         GridRow(alignment: .top) {
         GridRow(alignment: .top) {
             Color.clear.gridCellUnsizedAxes([.horizontal, .vertical])
             Color.clear.gridCellUnsizedAxes([.horizontal, .vertical])
 
 
-            Text("(Current - Target) ÷ ISF").foregroundColor(.secondary.opacity(colorScheme == .dark ? 0.65 : 0.8))
+            Text("(Current - Target) / ISF").foregroundColor(.secondary.opacity(colorScheme == .dark ? 0.65 : 0.8))
                 .gridColumnAlignment(.leading)
                 .gridColumnAlignment(.leading)
                 .gridCellColumns(2)
                 .gridCellColumns(2)
         }
         }
@@ -247,7 +247,7 @@ struct PopupView: View {
             Text(
             Text(
                 state.wholeCob
                 state.wholeCob
                     .formatted(.number.grouping(.never).rounded().precision(.fractionLength(fractionDigits)))
                     .formatted(.number.grouping(.never).rounded().precision(.fractionLength(fractionDigits)))
-                    + " ÷ " +
+                    + " / " +
                     state.carbRatio.formatted()
                     state.carbRatio.formatted()
                     + " ≈ " +
                     + " ≈ " +
                     self.insulinFormatter(state.wholeCobInsulin)
                     self.insulinFormatter(state.wholeCobInsulin)
@@ -288,7 +288,7 @@ struct PopupView: View {
             let fifteenMinInsulinFormatted = self.insulinFormatter(state.fifteenMinInsulin)
             let fifteenMinInsulinFormatted = self.insulinFormatter(state.fifteenMinInsulin)
 
 
             Text(
             Text(
-                deltaBG + " ÷ " + isf + " ≈ " + fifteenMinInsulinFormatted
+                deltaBG + " / " + isf + " ≈ " + fifteenMinInsulinFormatted
             )
             )
             .foregroundColor(.secondary)
             .foregroundColor(.secondary)
             .gridColumnAlignment(.leading)
             .gridColumnAlignment(.leading)
@@ -310,7 +310,7 @@ struct PopupView: View {
                     state.units.rawValue
                     state.units.rawValue
             )
             )
 
 
-            Text("15 min Delta ÷ ISF").font(.caption).foregroundColor(.secondary.opacity(colorScheme == .dark ? 0.65 : 0.8))
+            Text("15 min Delta / ISF").font(.caption).foregroundColor(.secondary.opacity(colorScheme == .dark ? 0.65 : 0.8))
                 .gridColumnAlignment(.leading)
                 .gridColumnAlignment(.leading)
                 .gridCellColumns(2).padding(.top, 5)
                 .gridCellColumns(2).padding(.top, 5)
         }
         }